Commits

David Jean Louis  committed 148ca2b Merge

Merged in volpino/django-admin-tools (pull request #6)

  • Participants
  • Parent commits b2578c8, 93421f2

Comments (0)

Files changed (2)

File admin_tools/dashboard/templates/admin_tools/dashboard/module.html

+{% load i18n %}
 {% if not module.is_empty %}
     <div id="module_{{ module.id }}" class="{{ module.render_css_classes }}">
-        {% if module.show_title %}<h2>{{ module.title }}</h2>{% endif %}
+        {% if module.show_title %}<h2>{% trans module.title %}</h2>{% endif %}
         <div class="dashboard-module-content">
             {% spaceless %}
             {% if module.pre_content %}

File admin_tools/utils.py

         for item in included:
             model, perms = item
             if fnmatch(full_name(model), pattern):
-                result.remove(item)
+                try:
+                    result.remove(item)
+                except ValueError:  # if the item was already removed skip
+                    pass
     return result