Changes between Initial Version and Version 1 of Ticket #29120


Ignore:
Timestamp:
Feb 8, 2018, 12:11:28 PM (7 years ago)
Author:
Rodrigo Pinheiro Marques de Araújo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29120 – Description

    initial v1  
     1
     2{{{
    13class ModelA(models.Model):
    24     pass
     
    46class ModelB(Models.Model):
    57     a = models.ForeignKey(ModelA)
     8}}}
     9
    610
    711In 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.
Back to Top