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

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

Make sure we store the file we process.

File size: 1.2 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
26class MeetBestandAdmin(admin.ModelAdmin):
27 list_display = ['meetrondje', 'bestand', 'is_imported']
28admin.site.register(MeetBestand, MeetBestandAdmin)
29
30admin.site.register(Apparatuur)
31admin.site.register(Gebruiker)
32
33class MetingAdmin(admin.ModelAdmin):
34 list_display = ['accespoint', 'latitude', 'longitude', 'signaal']
35 search_fields = ['accespoint__ssid']
36admin.site.register(Meting, MetingAdmin)
Note: See TracBrowser for help on using the repository browser.