#29700: Document ModelAdmin.autocomplete_view() and AutocompleteJsonView (as
customisation point).
-------------------------------------+-------------------------------------
     Reporter:  David W. Lloyd       |                    Owner:  Alexandru
         Type:                       |  Balan
  Cleanup/optimization               |                   Status:  new
    Component:  Documentation        |                  Version:  dev
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Someday/Maybe
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by rossettistone):

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


Comment:

 From what I can tell, removing `ModelAdmin.autocomplete_view` closed a
 pretty clean (if undocumented) option for modifying the label of items
 returned in the autocomplete Admin form. This Stack Overflow post
 illustrates: https://stackoverflow.com/questions/55629887/change-django-
 autocomplete-fields-label

 After some exploration, I haven't found another way to accomplish the same
 thing, i.e. providing a custom label for the admin autocomplete view
 without just overriding the `__str__` method on the model itself (which is
 rather heavy-handed).

 I don't know enough to write docs on this issue myself, but I think that
 documentation of the new pattern (or another way to edit autocomplete form
 labels) would be very helpful.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29700#comment:10>
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/067.3bccc93870370b4b32b92edb26fd0e77%40djangoproject.com.

Reply via email to