Changes between Version 1 and Version 3 of Ticket #31867


Ignore:
Timestamp:
Aug 8, 2020, 11:04:39 AM (4 years ago)
Author:
Antoine Humbert
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31867 – Description

    v1 v3  
    1010    * => There is no django.contrig.admin.helpers.Fieldline in this case which may hide a row containing the field
    1111
    12 The inconsistency resided in the fact that django.contrib.admin.helpers.Fieldline.has_visible_field rely on the field widget.is_hidden (whatever user has change permission on the model or nat), whereas in django.contrib.admin.helpers.InlineAdminFormset.fields, if user has change permission, field is rendered using the field widget (HiddenInput in this case), but is user does not have change permission, field widget is statically defined with {'hidden': False}.
     12The inconsistency resides in the fact that django.contrib.admin.helpers.Fieldline.has_visible_field relies on the field widget.is_hidden (whatever user has change permission on the model or not), whereas in django.contrib.admin.helpers.InlineAdminFormset.fields, if user has change permission, field is rendered using the field widget (HiddenInput in this case), but if user does not have change permission, field widget is statically defined with {'hidden': False}.
    1313
    1414In this function, changing lines
Back to Top