Skip to content

Commit e84a706

Browse files
authored
Guard variable that's not always defined. (#418)
* guard variable that's not always defined * adjust
1 parent 302c638 commit e84a706

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

admin_interface/templates/admin/base_site.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,13 @@
146146
{% if theme.list_filter_highlight %} list-filter-highlight {% endif %}
147147
{% if theme.list_filter_sticky %} list-filter-sticky {% endif %}
148148

149+
{% if adminform and inline_admin_formsets %}
149150
{% admin_interface_use_changeform_tabs adminform inline_admin_formsets as admin_interface_use_changeform_tabs %}
150151
{% if admin_interface_use_changeform_tabs %}
151152
{% if theme.show_fieldsets_as_tabs %} show-fieldsets-as-tabs {% endif %}
152153
{% if theme.show_inlines_as_tabs %} show-inlines-as-tabs {% endif %}
153154
{% endif %}
155+
{% endif %}
154156

155157
{% if theme.collapsible_stacked_inlines %} collapsible-stacked-inlines
156158
{% if theme.collapsible_stacked_inlines_collapsed %} collapsible-stacked-inlines-collapsed {% endif %}

0 commit comments

Comments
 (0)