#26449: formfield_overrides doesn't work for models.DateTimeField with SplitDateTimeWidget -------------------------------+------------------------------------ Reporter: MarysiaLowas | Owner: yakky Type: Uncategorized | Status: assigned Component: contrib.admin | Version: 1.9 Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+------------------------------------
Comment (by yakky): After a bit of digging, this is actually a legitimate behavior due to this deprecation https://github.com/django/django/blob/stable/1.8.x/django/forms/fields.py#L507 which went into effect in 1.9 and it's documented in 1.9 release notes. That said the resulting error is kind of misleading, but being `AdminSplitDateTime` undocumented there is actually little way to overcome this. How about adding a documentation on how to use the `AdminSplitDateTime` widget in its docstring? -- Ticket URL: <https://code.djangoproject.com/ticket/26449#comment:3> Django <https://code.djangoproject.com/> 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/070.bfb405384273c08ec9d105de773430f5%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.