Project

General

Profile

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

root / uauth / organization / admin.py @ 64438aee

1 09d398ce Serghei MIHAI
from django.contrib import admin
2
3 5486e561 Serghei Mihai
from .models import Organization, LocalAccount
4 65c2ac7a Serghei MIHAI
5
@admin.register(Organization)
6
class OrganizationAdmin(admin.ModelAdmin):
7
    list_display = ('name', 'hotspot_type', 'hotspot_url')
8 5486e561 Serghei Mihai
9
@admin.register(LocalAccount)
10
class LocalAccountAdmin(admin.ModelAdmin):
11
    list_display = ('username', 'creation_date', 'expiration_date')
12
    list_filter = ('organization', )