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