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

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

I like to have nodes in here as well.

File size: 854 bytes
Line 
1from gheat.models import *
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
15class NodeAdmin(admin.ModelAdmin):
16 list_display = ['name','latitude', 'longitude', 'organization']
17 ordering = ['name']
18admin.site.register(Node, NodeAdmin)
19
20admin.site.register(Apparatuur)
21admin.site.register(Gebruiker)
22
23class MetingAdmin(admin.ModelAdmin):
24 list_display = ['accespoint', 'latitude', 'longitude', 'signaal']
25 search_fields = ['accespoint__ssid']
26admin.site.register(Meting, MetingAdmin)
Note: See TracBrowser for help on using the repository browser.