{% extends "admin/change_form.html" %}
{% block breadcrumbs %}
{% endblock %}
{% block content %}
Blah
{% endblock %}
However omitting the breadcrumbs block should be valid - you will just get
the breadcrumbs block from the parent;
{% extends "admin/change_form.html" %}
{% block content %}
Blah
{% endblock %}
however this throws a difficult to trace error;
NoReverseMatch at /admin/membership/reports/company/membershippaid/
Reverse for 'app_list' with arguments '()' and keyword arguments
'{u'app_label': ''}' not found. 1 pattern(s) tried:
[u'admin/(?P<app_label>\\w+)/$']
The admin/change_form.html template contains this;
{% url 'admin:app_list' app_label=opts.app_label %}
which i think is the code generating the error due to opts being empty.
It is possible that my system (upgraded from 1.2.3) is causing opts to be
blank - not sure how to test this, however putting [{{ opts }}] into the
template shows that opts is empty.
--
Ticket URL: <https://code.djangoproject.com/ticket/22348>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* needs_better_patch: => 0
* resolution: => needsinfo
* needs_tests: => 0
* needs_docs: => 0
Comment:
Is /admin/membership/reports/company/membershippaid/ a custom admin view
that doesn't put `opts` in the context? This doesn't look like in bug in
Django to me. Please use our support channels and reopen the ticket if you
can provide more details.
https://code.djangoproject.com/wiki/TicketClosingReasons/UseSupportChannels
--
Ticket URL: <https://code.djangoproject.com/ticket/22348#comment:1>