source: src/django_gheat/gheat/admin.py@ 9579

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