1 | from gheat.models import *
|
---|
2 | from django.contrib import admin
|
---|
3 |
|
---|
4 | class AccespointAdmin(admin.ModelAdmin):
|
---|
5 | list_display = ['ssid','mac', 'organization']
|
---|
6 | search_fields = ['ssid', 'mac', 'organization']
|
---|
7 | admin.site.register(Accespoint, AccespointAdmin)
|
---|
8 |
|
---|
9 | class MeetBestandInline(admin.TabularInline):
|
---|
10 | model = MeetBestand
|
---|
11 | class MeetRondjeAdmin(admin.ModelAdmin):
|
---|
12 | inlines = [ MeetBestandInline, ]
|
---|
13 | admin.site.register(MeetRondje, MeetRondjeAdmin)
|
---|
14 |
|
---|
15 | class NodeAdmin(admin.ModelAdmin):
|
---|
16 | list_display = ['name','latitude', 'longitude', 'organization']
|
---|
17 | ordering = ['name']
|
---|
18 | admin.site.register(Node, NodeAdmin)
|
---|
19 |
|
---|
20 | admin.site.register(Apparatuur)
|
---|
21 | admin.site.register(Gebruiker)
|
---|
22 |
|
---|
23 | class MetingAdmin(admin.ModelAdmin):
|
---|
24 | list_display = ['accespoint', 'latitude', 'longitude', 'signaal']
|
---|
25 | search_fields = ['accespoint__ssid']
|
---|
26 | admin.site.register(Meting, MetingAdmin)
|
---|