#33574: SlugField in formfield_overrides
-------------------------------------+-------------------------------------
     Reporter:  Maxim Danilov        |                    Owner:  SaNjU
                                     |  Saini
         Type:  Bug                  |                   Status:  closed
    Component:  contrib.admin        |                  Version:  4.0
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:  admin, modeladmin,   |             Triage Stage:
  documentation                      |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

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


Comment:

 Interesting example, but out of scope for `formfield_overrides`, which is
 just ''a quick-and-dirty way to override **some** of the Field options for
 use in the admin'' (emphasis added).

 If you **really** want to use CharField here, provide a Form subclass via
 `ModelAdmin.get_form()`. (Adding logic to exclude `kwargs` via
 `formfield_overrides` is not going to be worth the complexity.)

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33574#comment:2>
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107017f91d7af70-c72859f1-f8cc-4cc3-aaac-97ed5ee8fb65-000000%40eu-central-1.amazonses.com.

Reply via email to