Commit 51929469 authored by Laurent Peuch's avatar Laurent Peuch
Browse files

[fix] make django-admin-views works

parent c789782c
......@@ -29,7 +29,7 @@ ALLOWED_HOSTS = ['*']
# Application definition
INSTALLED_APPS = (
'django_admin_bootstrapped',
'admin_views',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
......@@ -42,7 +42,6 @@ INSTALLED_APPS = (
'carnet_rose',
'members',
'accounts',
'admin_views',
)
MIDDLEWARE_CLASSES = (
......
......@@ -2,6 +2,7 @@
import reversion
from django.contrib import admin
from admin_views.admin import AdminViews
from .models import Member
......@@ -23,7 +24,7 @@ class IsStillMember(admin.SimpleListFilter):
return queryset.filter(member_end__isnull=False)
class MemberAdmin(reversion.VersionAdmin):
class MemberAdmin(reversion.VersionAdmin, AdminViews):
list_display = ('first_name', 'last_name', 'last_paid_date', 'email', 'vpn', 'cube', 'is_not_a_member_yet')
list_filter = ('last_paid_date', 'ca_member', IsStillMember, 'vpn', 'cube', 'is_not_a_member_yet')
radio_fields = {"juridical_form": admin.HORIZONTAL}
......@@ -47,5 +48,9 @@ class MemberAdmin(reversion.VersionAdmin):
}),
)
admin_views = (
('example', 'http://example.com'),
)
admin.site.register(Member, MemberAdmin)
Supports Markdown
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