{% extends "base.html" %}

{% load display %}

{% block js %} {{ form.media }} {% endblock %}

{% block content %}
  <h2>{% if form.instance.id %}Change{% else %}Add{% endif %} {{ form.Meta.model|object_name|lower }}</h2>

  {% block admin %}
  {% endblock %}

{% endblock %}

{% extends "base.html" %}

{% load display %}

{% if form.media %}
{% block js %} {{ form.media.js }} {% endblock %}
{% block css %} {{ form.media.css }} {% endblock %}
{% endif %}

{% block content %}
  <h2>{% if form.instance.id %}Change{% else %}Add{% endif %} {{ form.Meta.model|object_name|lower }}</h2>

  {% block admin %}
  {% endblock %}

{% endblock %}

Split form css & js
Split form css & js
