admin.py (a slice)
==================
class PhotoInline(admin.TabularInline):
# ...
class GalleryAdmin(admin.ModelAdmin):
inlines = [PhotoInline]
add_form_template = 'admin/add_without_inlines.html'
# ...
templates/admin/add_without_inlines.html (full)
===============================================
{% extends "admin/change_form.html" %}
{% block inline_field_sets %}
{% for inline_admin_formset in inline_admin_formsets %}
{{ inline_admin_formset.formset.management_form }}
{% endfor %}
{% endblock %}
Comments
Another trick is to control this from Admin class instead of the template, by only setting the inline in the change_view
#