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

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

Fix the organization imports

File size: 1.0 KB
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']
7 ordering = ['ssid']
8admin.site.register(Accespoint, AccespointAdmin)
9
10class MeetBestandInline(admin.TabularInline):
11 model = MeetBestand
12class MeetRondjeAdmin(admin.ModelAdmin):
13 inlines = [ MeetBestandInline, ]
14admin.site.register(MeetRondje, MeetRondjeAdmin)
15
16class NodeAdmin(admin.ModelAdmin):
17 list_display = ['name','latitude', 'longitude', 'organization']
18 ordering = ['name']
19admin.site.register(Node, NodeAdmin)
20
21class OrganizationAdmin(admin.ModelAdmin):
22 list_display = ['name', 'fullname']
23 ordering = ['name']
24admin.site.register(Organization, OrganizationAdmin)
25
26admin.site.register(Apparatuur)
27admin.site.register(Gebruiker)
28
29class MetingAdmin(admin.ModelAdmin):
30 list_display = ['accespoint', 'latitude', 'longitude', 'signaal']
31 search_fields = ['accespoint__ssid']
32admin.site.register(Meting, MetingAdmin)
Note: See TracBrowser for help on using the repository browser.