Skip to content

Commit

Permalink
fixed readonly id field, #990
Browse files Browse the repository at this point in the history
  • Loading branch information
sehmaschine committed Nov 22, 2022
1 parent 1ac1eb8 commit e50b02c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion grappelli/templates/admin/edit_inline/tabular.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,15 @@ <h3 style="display: none;"><b>{{ inline_admin_formset.opts.verbose_name }} #{{ f
{% for fieldset in inline_admin_form %}
{% for line in fieldset %}
{% for field in line %}
{% if field.field.is_hidden %} {{ field.field }} {% endif %}
{% if field.field.is_hidden %}
<div style="display: none;">
{% if field.is_readonly %}
{{ field.contents }}
{% else %}
{{ field.field }}
{% endif %}
</div>
{% endif %}
{% endfor %}
{% endfor %}
{% endfor %}
Expand Down

0 comments on commit e50b02c

Please sign in to comment.