Last change
on this file since 9579 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
|
Rev | Line | |
---|
[9395] | 1 | from gheat.models import Accespoint, Apparatuur, Gebruiker, MeetRondje, Meting, MeetBestand
|
---|
[9041] | 2 | from django.contrib import admin
|
---|
| 3 |
|
---|
[9579] | 4 | class AccespointAdmin(admin.ModelAdmin):
|
---|
| 5 | list_display = ['ssid','mac', 'organization']
|
---|
| 6 | search_fields = ['ssid', 'mac', 'organization']
|
---|
| 7 |
|
---|
| 8 | admin.site.register(Accespoint, AccespointAdmin)
|
---|
[9054] | 9 | admin.site.register(Apparatuur)
|
---|
[9041] | 10 | admin.site.register(Gebruiker)
|
---|
[9395] | 11 | class MeetBestandInline(admin.TabularInline):
|
---|
| 12 | model = MeetBestand
|
---|
| 13 | class MeetRondjeAdmin(admin.ModelAdmin):
|
---|
| 14 | inlines = [ MeetBestandInline, ]
|
---|
| 15 |
|
---|
| 16 | admin.site.register(MeetRondje, MeetRondjeAdmin)
|
---|
[9054] | 17 | admin.site.register(Meting)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.