Project

General

Profile

Download (393 Bytes) Statistics
| Branch: | Tag: | Revision:

root / uauth / organization / admin.py @ 5486e561

1
from django.contrib import admin
2

    
3
from .models import Organization, LocalAccount
4

    
5
@admin.register(Organization)
6
class OrganizationAdmin(admin.ModelAdmin):
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', )
(2-2/5)