Re: [Django] #35657: Specifying db_default on FileField causes crash on instance save

2024-08-10 Thread Django
#35657: Specifying db_default on FileField causes crash on instance save
-+-
 Reporter:  David Sanders|Owner:  Sarah
 |  Boyce
 Type:  Bug  |   Status:  closed
Component:  Database layer   |  Version:  5.0
  (models, ORM)  |
 Severity:  Release blocker  |   Resolution:  fixed
 Keywords:  db_default   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Comment (by Mohammad Salehi):

 I have created a PR: [https://github.com/django/django/pull/18465]
-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701913dc0ff47-f2bf2d09-cfb1-4a17-bd41-25c9344cf242-00%40eu-central-1.amazonses.com.


Re: [Django] #35657: Specifying db_default on FileField causes crash on instance save

2024-08-05 Thread Django
#35657: Specifying db_default on FileField causes crash on instance save
-+-
 Reporter:  David Sanders|Owner:  Sarah
 |  Boyce
 Type:  Bug  |   Status:  closed
Component:  Database layer   |  Version:  5.0
  (models, ORM)  |
 Severity:  Release blocker  |   Resolution:  fixed
 Keywords:  db_default   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Comment (by Natalia <124304+nessita@…>):

 In [changeset:"d7f955462cb17e74c2a1701ea7f722f2ed2bc168" d7f9554]:
 {{{#!CommitTicketReference repository=""
 revision="d7f955462cb17e74c2a1701ea7f722f2ed2bc168"
 [5.0.x] Fixed #35657 -- Made FileField handle db_default values.

 Backport of 8deb6bb1fc427762d56646bf7306cbd11fb5bb68 from main.
 }}}
-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070191240d3197-2fdef457-02b7-4845-a14a-25923658ff96-00%40eu-central-1.amazonses.com.


Re: [Django] #35657: Specifying db_default on FileField causes crash on instance save

2024-08-05 Thread Django
#35657: Specifying db_default on FileField causes crash on instance save
-+-
 Reporter:  David Sanders|Owner:  Sarah
 |  Boyce
 Type:  Bug  |   Status:  closed
Component:  Database layer   |  Version:  5.0
  (models, ORM)  |
 Severity:  Release blocker  |   Resolution:  fixed
 Keywords:  db_default   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Comment (by Natalia <124304+nessita@…>):

 In [changeset:"2ba4f4b0b550a98f10deac47c1bbddccbc7365cd" 2ba4f4b0]:
 {{{#!CommitTicketReference repository=""
 revision="2ba4f4b0b550a98f10deac47c1bbddccbc7365cd"
 [5.1.x] Fixed #35657 -- Made FileField handle db_default values.

 Backport of 8deb6bb1fc427762d56646bf7306cbd11fb5bb68 from main.
 }}}
-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070191240c81e2-8dea0a4a-1db7-48c1-804f-1fe3e957016c-00%40eu-central-1.amazonses.com.


Re: [Django] #35657: Specifying db_default on FileField causes crash on instance save

2024-08-05 Thread Django
#35657: Specifying db_default on FileField causes crash on instance save
-+-
 Reporter:  David Sanders|Owner:  Sarah
 |  Boyce
 Type:  Bug  |   Status:  closed
Component:  Database layer   |  Version:  5.0
  (models, ORM)  |
 Severity:  Release blocker  |   Resolution:  fixed
 Keywords:  db_default   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by GitHub ):

 * resolution:   => fixed
 * status:  assigned => closed

Comment:

 In [changeset:"8deb6bb1fc427762d56646bf7306cbd11fb5bb68" 8deb6bb1]:
 {{{#!CommitTicketReference repository=""
 revision="8deb6bb1fc427762d56646bf7306cbd11fb5bb68"
 Fixed #35657 -- Made FileField handle db_default values.
 }}}
-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070191240b6cfc-97e48d82-72f1-424e-8054-cd3f4ed843a7-00%40eu-central-1.amazonses.com.


Re: [Django] #35657: Specifying db_default on FileField causes crash on instance save

2024-08-05 Thread Django
#35657: Specifying db_default on FileField causes crash on instance save
-+-
 Reporter:  David Sanders|Owner:  Sarah
 |  Boyce
 Type:  Bug  |   Status:  assigned
Component:  Database layer   |  Version:  5.0
  (models, ORM)  |
 Severity:  Release blocker  |   Resolution:
 Keywords:  db_default   | Triage Stage:  Ready for
 |  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Natalia Bidart):

 * stage:  Accepted => Ready for checkin

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107019123c9f4dc-8bd6f650-03f4-436f-a983-88abc89e013c-00%40eu-central-1.amazonses.com.


Re: [Django] #35657: Specifying db_default on FileField causes crash on instance save

2024-08-05 Thread Django
#35657: Specifying db_default on FileField causes crash on instance save
-+-
 Reporter:  David Sanders|Owner:  Sarah
 |  Boyce
 Type:  Bug  |   Status:  assigned
Component:  Database layer   |  Version:  5.0
  (models, ORM)  |
 Severity:  Release blocker  |   Resolution:
 Keywords:  db_default   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Sarah Boyce):

 * has_patch:  0 => 1

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107019122724b7b-33586cee-38d5-4bcc-8791-d4d8e772b45c-00%40eu-central-1.amazonses.com.


Re: [Django] #35657: Specifying db_default on FileField causes crash on instance save

2024-08-05 Thread Django
#35657: Specifying db_default on FileField causes crash on instance save
-+-
 Reporter:  David Sanders|Owner:  Sarah
 |  Boyce
 Type:  Bug  |   Status:  assigned
Component:  Database layer   |  Version:  5.0
  (models, ORM)  |
 Severity:  Release blocker  |   Resolution:
 Keywords:  db_default   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Sarah Boyce):

 * owner:  (none) => Sarah Boyce
 * status:  new => assigned

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701912271f8fc-4afe54e9-4c6e-4679-9cd1-6de148d7f439-00%40eu-central-1.amazonses.com.


Re: [Django] #35657: Specifying db_default on FileField causes crash on instance save

2024-08-05 Thread Django
#35657: Specifying db_default on FileField causes crash on instance save
-+-
 Reporter:  David Sanders|Owner:  (none)
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  5.0
  (models, ORM)  |
 Severity:  Release blocker  |   Resolution:
 Keywords:  db_default   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Comment (by Sarah Boyce):

 Replying to [comment:5 Mohammad Salehi]:
 > Hi, I tested this issue and it indeed exists. It can be resolved by
 initiating self.name to None in init, and that's it
 > I would send a PR to address this alongside a test, if you are ok.

 That doesn't sound right
 I've opened a PR
-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701912270f754-0ac7286f-4da3-4f0e-845a-ee7b228b1d5e-00%40eu-central-1.amazonses.com.


Re: [Django] #35657: Specifying db_default on FileField causes crash on instance save

2024-08-05 Thread Django
#35657: Specifying db_default on FileField causes crash on instance save
-+-
 Reporter:  David Sanders|Owner:  (none)
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  5.0
  (models, ORM)  |
 Severity:  Release blocker  |   Resolution:
 Keywords:  db_default   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Comment (by Mohammad Salehi):

 Hi, I tested this issue and it indeed exists. It can be resolved by
 initiating self.name to None in init, and that's it
 I would send a PR to address this alongside a test, if you are ok.
-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070191225d7bf2-c2bfc479-7b09-40d0-b7a9-401db55b1179-00%40eu-central-1.amazonses.com.


Re: [Django] #35657: Specifying db_default on FileField causes crash on instance save

2024-08-05 Thread Django
#35657: Specifying db_default on FileField causes crash on instance save
-+-
 Reporter:  David Sanders|Owner:  (none)
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  5.0
  (models, ORM)  |
 Severity:  Release blocker  |   Resolution:
 Keywords:  db_default   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Sarah Boyce):

 * has_patch:  1 => 0
 * needs_better_patch:  1 => 0
 * owner:  Sarah Boyce => (none)
 * status:  assigned => new

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070191222c7511-7ccbc6b0-5252-4a8f-a105-a16ac53f33f3-00%40eu-central-1.amazonses.com.


Re: [Django] #35657: Specifying db_default on FileField causes crash on instance save

2024-08-05 Thread Django
#35657: Specifying db_default on FileField causes crash on instance save
-+-
 Reporter:  David Sanders|Owner:  Sarah
 |  Boyce
 Type:  Bug  |   Status:  assigned
Component:  Database layer   |  Version:  5.0
  (models, ORM)  |
 Severity:  Release blocker  |   Resolution:
 Keywords:  db_default   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Sarah Boyce):

 * needs_better_patch:  0 => 1

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701912200bfab-e290c11e-3523-4d78-8f55-d73904ca4b78-00%40eu-central-1.amazonses.com.


Re: [Django] #35657: Specifying db_default on FileField causes crash on instance save

2024-08-05 Thread Django
#35657: Specifying db_default on FileField causes crash on instance save
-+-
 Reporter:  David Sanders|Owner:  Sarah
 |  Boyce
 Type:  Bug  |   Status:  assigned
Component:  Database layer   |  Version:  5.0
  (models, ORM)  |
 Severity:  Release blocker  |   Resolution:
 Keywords:  db_default   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Sarah Boyce):

 * has_patch:  0 => 1
 * owner:  (none) => Sarah Boyce
 * severity:  Normal => Release blocker
 * stage:  Unreviewed => Accepted
 * status:  new => assigned

Comment:

 I feel like the behavior should mimic default here - accepting
-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107019121fdb2aa-3c955d56-3fe5-4b67-94e0-9dd4e8227daf-00%40eu-central-1.amazonses.com.


Re: [Django] #35657: Specifying db_default on FileField causes crash on instance save (was: Specifying db_default on FileField crashes)

2024-08-04 Thread Django
#35657: Specifying db_default on FileField causes crash on instance save
-+-
 Reporter:  David Sanders|Owner:  (none)
 Type:  Bug  |   Status:  new
Component:  Database layer   |  Version:  5.0
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:  db_default   | Triage Stage:
 |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by David Sanders):

 * summary:  Specifying db_default on FileField crashes => Specifying
 db_default on FileField causes crash on instance save

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701911cdbfe47-cc982a3a-5c9b-43e9-a223-b05588066375-00%40eu-central-1.amazonses.com.