#29138: Add ModelAdmin.autocomplete_fields support for ForeignKeys that use
to_field
-------------------------------------+-------------------------------------
     Reporter:  Jonathan Nye         |                    Owner:  Johannes
                                     |  Maron
         Type:  Bug                  |                   Status:  closed
    Component:  contrib.admin        |                  Version:  2.0
     Severity:  Normal               |               Resolution:  fixed
     Keywords:  autocomplete         |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by 007):

 Replying to [comment:30 Johannes Maron]:
 > Hi 007,
 >
 > Thank you for reaching out. I understand your frustration. However, the
 `AutocompleteMixin` was never documented, which means it is not considered
 a public API. Private APIs are not subject to deprecation. That is the
 risk you take, when using a private API.
 >
 > All that being said, is there anything I could be of help with? If you
 have a 3rd party package, that needs assistance, I would be delighted to
 help.
 >
 > Best,
 > Joe
 In my package to achieve a similar function of this submission. I'm going
 to try to re implement it in the way of 3.2, and compatible with earlier
 versions

 https://github.com/007gzs/django-
 
cool/blob/f13d52b571eb77c02b062523bc1d79cdeed31b5a/cool/admin/widgets.py#L184-L234

 https://github.com/007gzs/django-
 cool/blob/f13d52b571eb77c02b062523bc1d79cdeed31b5a/cool/admin/views.py#L14-L76

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29138#comment:31>
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/064.afbd00f24f8de07c5f678cd81d30965b%40djangoproject.com.

Reply via email to