Commit 0b91a36c authored by Patrick's avatar Patrick
Browse files

Disable grid form of mppt admin because it actualy trigger exception on delete...

Disable grid form of mppt admin because it actualy trigger exception on delete with django parler models. The tree form works perfectly.
parent 9d58ddd3
{% extends 'admin/change_list.html' %}
{% load i18n admin_list %}
{% block extrastyle %}
{{ block.super }}
<script type="text/javascript" src="{{ jsi18n_url }}"></script>
{% endblock %}
{% block search %}{% endblock %}
{% block result_list %}
<div
id="tree"
class="block-style"
data-url="{{ tree_json_url }}"
data-insert_at_url="{{ insert_at_url }}"
data-save_state="{{ app_label }}_{{ model_name }}"
data-auto_open="{{ tree_auto_open }}"
data-autoescape="{{ autoescape }}"
data-csrf-cookie-name="{{ csrf_cookie_name }}"
{% if LANGUAGE_BIDI %}
data-rtl
{% endif %}
data-use_context_menu="{{ use_context_menu }}"
></div>
{% endblock %}
{% block filters %}
{% if cl.has_filters %}
<div id="changelist-filter">
<h2>{% trans 'Filter' %}</h2>
{% for spec in cl.filter_specs %}{% admin_list_filter cl spec %}{% endfor %}
</div>
{% endif %}
{% endblock %}
{% block pagination %}{% endblock %}
{% block object-tools-items %}
{{ block.super }}
{# <li>#}
{# <a href="{{ grid_url }}">{% trans "Grid view" %}</a>#}
{# </li>#}
{% endblock %}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment