#33703: ModelAdmin.get_fields wrong work with ModelAdmin.fieldsets statement
-----------------------------------+--------------------------------------
     Reporter:  Maxim Danilov      |                    Owner:  nobody
         Type:  Uncategorized      |                   Status:  new
    Component:  contrib.admin      |                  Version:  4.0
     Severity:  Normal             |               Resolution:
     Keywords:  admin, modeladmin  |             Triage Stage:  Unreviewed
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+--------------------------------------
Changes (by Maxim Danilov):

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


Comment:

 documentation:
 ----
 ModelAdmin.get_fields
 The get_fields method is given the HttpRequest and the obj being edited
 (or None on an add form) and is expected to return a list of fields, as
 described above in the ModelAdmin.fields section.

 ModelAdmin.fields

 Use the fields option to make simple layout changes in the forms on the
 “add” and “change” pages such as showing only a subset of available fields
 For more complex layout needs, see the fieldsets option.
 ----

 I use only .fieldsets, without .fields definition.  ModelAdmin.get_fields
 give me a wrong list.
 Why you set my ticket as invalid?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33703#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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070180bc86fed0-b6873c08-eb7e-4378-b343-bec4e61932e9-000000%40eu-central-1.amazonses.com.

Reply via email to