Skip to content

Commit

Permalink
fix ext_read_only_fields on add mode
Browse files Browse the repository at this point in the history
  • Loading branch information
cuongnb14 authored Sep 6, 2022
1 parent 66d14c8 commit e0ca0dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin_extended/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_fieldsets(self, request, obj=None):
fields.append(f)
fieldset[1]['fields'] = fields

elif request.page_type == 'edit':
else:
if self.ext_read_only_fields:
for fieldset in fieldsets:
fields = []
Expand Down

0 comments on commit e0ca0dd

Please sign in to comment.