Project

General

Profile

« Previous | Next » 

Revision 5486e561

Added by Serghei Mihai almost 9 years ago

local account manageable from admin

View differences:

uauth/organization/admin.py
1 1
from django.contrib import admin
2 2

  
3
from .models import Organization
3
from .models import Organization, LocalAccount
4 4

  
5 5
@admin.register(Organization)
6 6
class OrganizationAdmin(admin.ModelAdmin):
7 7
    list_display = ('name', 'hotspot_type', 'hotspot_url')
8

  
9
@admin.register(LocalAccount)
10
class LocalAccountAdmin(admin.ModelAdmin):
11
    list_display = ('username', 'creation_date', 'expiration_date')
12
    list_filter = ('organization', )

Also available in: Unified diff