Problems extend change_form.html in django admin
This is caused most likely because you have a {% url %}
tag that is trying to link to the app_list. It could be in your admin/form_change.html or in some other included/extended template.
This is usually caused by context that is not passed correctly such as if you have a tag that looks like {% url 'app_list' %}
or {% url 'app_list' var %}
and the var
is empty.
change_form.html
contains the following url tag:
{% url 'admin:app_list' app_label=opts.app_label %}
So you should pass the opts
variable to the template context:
data = {'test': 'test',
'opts': MyModel._meta}
UPDATE: The change_form.html
template uses the {% submit_row %}
template tag which requires some other context variables so the data
dictionary should be like this:
data = {'test': 'test',
'opts': MyModel._meta,
'change': True,
'is_popup': False,
'save_as': False,
'has_delete_permission': False,
'has_add_permission': False,
'has_change_permission': False}