Just enable action buttons for all admin pages.

parent 8edb5413
{% extends "admin/base.html" %}
{% block extrahead %}
{% load staticfiles%}
<!-- Inject admin action dropdown conversion to button for all admin pages. -->
<script type="text/javascript" src="{% static 'js/action_buttons.js' %}"></script>
{% endblock %}
......@@ -31,4 +31,4 @@
$(function () {
fix_actions();
});
})(django.jQuery);
})(jQuery);
......@@ -52,9 +52,6 @@ class UrlRatingAdminInline(CompactInline):
class OrganizationAdmin(admin.ModelAdmin):
class Media:
js = ('js/action_buttons.js', )
list_display = ('name', 'type', 'country')
search_fields = (['name', 'country', 'type__name'])
list_filter = ('name', 'type__name', 'country') # todo: type is now listed as name, confusing
......@@ -95,9 +92,6 @@ class OrganizationAdmin(admin.ModelAdmin):
class UrlAdmin(admin.ModelAdmin):
class Media:
js = ('js/action_buttons.js', )
list_display = ('url', 'endpoints', 'onboarded', 'uses_dns_wildcard', 'is_dead', 'not_resolvable', 'created_on')
search_fields = ('url', )
list_filter = ('url', 'is_dead', 'is_dead_since', 'is_dead_reason',
......
......@@ -44,6 +44,9 @@ INTERNAL_IPS = ['localhost', '127.0.0.1', '::1']
# Application definition
INSTALLED_APPS = [
# needs to be before jet and admin to extend admin/base.html template
'failmap_admin.app',
# Jet admin dashboard
'jet.dashboard',
'jet',
'django.contrib.admin',
......@@ -53,7 +56,6 @@ INSTALLED_APPS = [
'django.contrib.messages',
'django.contrib.staticfiles',
'failmap_admin.fail',
'failmap_admin.app',
'failmap_admin.organizations',
'failmap_admin.scanners',
'failmap_admin.map',
......
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