Last change
on this file since 9583 was 9579, checked in by rick, 13 years ago |
Map a SSID to an organization to play nice with differnt SSIDs.
|
File size:
600 bytes
|
Line | |
---|
1 | from gheat.models import Accespoint, Apparatuur, Gebruiker, MeetRondje, Meting, MeetBestand
|
---|
2 | from django.contrib import admin
|
---|
3 |
|
---|
4 | class AccespointAdmin(admin.ModelAdmin):
|
---|
5 | list_display = ['ssid','mac', 'organization']
|
---|
6 | search_fields = ['ssid', 'mac', 'organization']
|
---|
7 |
|
---|
8 | admin.site.register(Accespoint, AccespointAdmin)
|
---|
9 | admin.site.register(Apparatuur)
|
---|
10 | admin.site.register(Gebruiker)
|
---|
11 | class MeetBestandInline(admin.TabularInline):
|
---|
12 | model = MeetBestand
|
---|
13 | class MeetRondjeAdmin(admin.ModelAdmin):
|
---|
14 | inlines = [ MeetBestandInline, ]
|
---|
15 |
|
---|
16 | admin.site.register(MeetRondje, MeetRondjeAdmin)
|
---|
17 | admin.site.register(Meting)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.