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

Last change on this file since 9585 was 9585, checked in by rick, 13 years ago

Better searching...

File size: 758 bytes
Line 
1from gheat.models import Accespoint, Apparatuur, Gebruiker, MeetRondje, Meting, MeetBestand
2from django.contrib import admin
3
4class AccespointAdmin(admin.ModelAdmin):
5 list_display = ['ssid','mac', 'organization']
6 search_fields = ['ssid', 'mac', 'organization']
7admin.site.register(Accespoint, AccespointAdmin)
8
9class MeetBestandInline(admin.TabularInline):
10 model = MeetBestand
11class MeetRondjeAdmin(admin.ModelAdmin):
12 inlines = [ MeetBestandInline, ]
13admin.site.register(MeetRondje, MeetRondjeAdmin)
14
15admin.site.register(Apparatuur)
16admin.site.register(Gebruiker)
17
18class MetingAdmin(admin.ModelAdmin):
19 list_display = ['accespoint', 'latitude', 'longitude', 'signaal']
20 search_fields = ['accespoint__ssid']
21admin.site.register(Meting, MetingAdmin)
Note: See TracBrowser for help on using the repository browser.