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

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

Correct annoying typo in naming of the acces*s* point.

File size: 1.3 KB
Line 
1from gheat.models import *
2from django.contrib import admin
3
4class AccesspointAdmin(admin.ModelAdmin):
5 list_display = ['ssid','type', 'mac', 'organization']
6 search_fields = ['ssid', 'mac', 'organization']
7 ordering = ['ssid']
8admin.site.register(Accesspoint, AccesspointAdmin)
9
10class MeetBestandInline(admin.TabularInline):
11 model = MeetBestand
12 readonly_fields = ['is_imported']
13
14class MeetRondjeAdmin(admin.ModelAdmin):
15 inlines = [ MeetBestandInline, ]
16admin.site.register(MeetRondje, MeetRondjeAdmin)
17
18class NodeAdmin(admin.ModelAdmin):
19 list_display = ['name','latitude', 'longitude', 'organization']
20 ordering = ['name']
21admin.site.register(Node, NodeAdmin)
22
23class OrganizationAdmin(admin.ModelAdmin):
24 list_display = ['name', 'fullname']
25 ordering = ['name']
26admin.site.register(Organization, OrganizationAdmin)
27
28class MeetBestandAdmin(admin.ModelAdmin):
29 list_display = ['meetrondje', 'bestand', 'filetype', 'is_imported']
30 readonly_fields = ['is_imported']
31admin.site.register(MeetBestand, MeetBestandAdmin)
32
33admin.site.register(Apparatuur)
34admin.site.register(Gebruiker)
35
36class MetingAdmin(admin.ModelAdmin):
37 list_display = ['accesspoint', 'latitude', 'longitude', 'signaal']
38 search_fields = ['accesspoint__ssid']
39admin.site.register(Meting, MetingAdmin)
Note: See TracBrowser for help on using the repository browser.