summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerghei Mihai <smihai@entrouvert.com>2015-04-27 16:29:00 (GMT)
committerSerghei Mihai <smihai@entrouvert.com>2015-04-27 16:29:00 (GMT)
commit5486e561b27cd6be8366fd852dcb5b211b2932c5 (patch)
tree10b7cce85e7cafca5cbc3eaa81f2588811ec1cc0
parent51ba134ec8a17687d9a920ce068afbdc15755e52 (diff)
downloadu-auth-5486e561b27cd6be8366fd852dcb5b211b2932c5.zip
u-auth-5486e561b27cd6be8366fd852dcb5b211b2932c5.tar.gz
u-auth-5486e561b27cd6be8366fd852dcb5b211b2932c5.tar.bz2
local account manageable from admin
-rw-r--r--uauth/organization/admin.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/uauth/organization/admin.py b/uauth/organization/admin.py
index a995e4f..0df8af8 100644
--- a/uauth/organization/admin.py
+++ b/uauth/organization/admin.py
@@ -1,7 +1,12 @@
from django.contrib import admin
-from .models import Organization
+from .models import Organization, LocalAccount
@admin.register(Organization)
class OrganizationAdmin(admin.ModelAdmin):
list_display = ('name', 'hotspot_type', 'hotspot_url')
+
+@admin.register(LocalAccount)
+class LocalAccountAdmin(admin.ModelAdmin):
+ list_display = ('username', 'creation_date', 'expiration_date')
+ list_filter = ('organization', )