Re: [Django] #27304: Django 1.10 onwards broke previous behaviour for models.DateTimeField() in Admin

2016-10-04 Thread Django
#27304: Django 1.10 onwards broke previous behaviour for models.DateTimeField() 
in
Admin
-+-
 Reporter:  Kegan Gan|Owner:  nobody
 Type:  Bug  |   Status:  closed
Component:  contrib.admin|  Version:  1.10
 Severity:  Normal   |   Resolution:  invalid
 Keywords:  model admin  | Triage Stage:
  datetime formfield_overrides   |  Unreviewed
  AdminDateWidget widget |
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by Kegan Gan):

 Thanks Tim! It worked.

 For reference, to override admin widget, use the following:

 {{{
 formfield_overrides = {
 models.DateTimeField: {'form_class': forms.DateTimeField,
 'widget': widgets.AdminDateWidget},
 }
 }}}

 Also refer to #26449.

--
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 post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.094d2469a590eff97fb34c2e7efff2ab%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27304: Django 1.10 onwards broke previous behaviour for models.DateTimeField() in Admin

2016-10-03 Thread Django
#27304: Django 1.10 onwards broke previous behaviour for models.DateTimeField() 
in
Admin
-+-
 Reporter:  Kegan Gan|Owner:  nobody
 Type:  Bug  |   Status:  closed
Component:  contrib.admin|  Version:  1.10
 Severity:  Normal   |   Resolution:  invalid
 Keywords:  model admin  | Triage Stage:
  datetime formfield_overrides   |  Unreviewed
  AdminDateWidget widget |
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Tim Graham):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 Bisected to b9290b1d49538c1092b59c41e6046b11c25ecafb. To adapt your code,
 you must add `'form_class': forms.DateField` to the override.

--
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 post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.1791b7af6d9f3769d63f90b43f6ea13f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #27304: Django 1.10 onwards broke previous behaviour for models.DateTimeField() in Admin

2016-10-02 Thread Django
#27304: Django 1.10 onwards broke previous behaviour for models.DateTimeField() 
in
Admin
-+-
 Reporter:  Kegan Gan|Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  contrib.admin|  Version:  1.10
 Severity:  Normal   |   Resolution:
 Keywords:  model admin  | Triage Stage:
  datetime formfield_overrides   |  Unreviewed
  AdminDateWidget widget |
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Tim Graham):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 Can you [https://docs.djangoproject.com/en/dev/internals/contributing
 /triaging-tickets/#bisecting-a-regression bisect] to find where the
 behavior changed? Without looking into the details, I'm not immediately
 convinced we should treat this as a bug and provide backwards-
 compatibility for it, but we'll see.

--
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 post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.928ccf38d29d65c9d21f8d170b4f4e4b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.