Changes between Initial Version and Version 1 of Ticket #29120
- Timestamp:
- Feb 8, 2018, 12:11:28 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29120 – Description
initial v1 1 2 {{{ 1 3 class ModelA(models.Model): 2 4 pass … … 4 6 class ModelB(Models.Model): 5 7 a = models.ForeignKey(ModelA) 8 }}} 9 6 10 7 11 In django's admin a form can list all related objects without permission need. In the example above, Model B's form if using a ModelChoiceField is possible to lista all A objects. But using a autocomplete field requires change permission to find "A" objects. This different behavior force admin's user to give a different level of permission to your users. To fix this in the AutocompleteView the only permission required should be a logged user and staff member.