Rev | Line | |
---|
[9395] | 1 | from gheat.models import Accespoint, Apparatuur, Gebruiker, MeetRondje, Meting, MeetBestand
|
---|
[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']
|
---|
[9585] | 7 | admin.site.register(Accespoint, AccespointAdmin)
|
---|
[9579] | 8 |
|
---|
[9395] | 9 | class MeetBestandInline(admin.TabularInline):
|
---|
| 10 | model = MeetBestand
|
---|
| 11 | class MeetRondjeAdmin(admin.ModelAdmin):
|
---|
| 12 | inlines = [ MeetBestandInline, ]
|
---|
[9585] | 13 | admin.site.register(MeetRondje, MeetRondjeAdmin)
|
---|
[9395] | 14 |
|
---|
[9585] | 15 | admin.site.register(Apparatuur)
|
---|
| 16 | admin.site.register(Gebruiker)
|
---|
| 17 |
|
---|
| 18 | class MetingAdmin(admin.ModelAdmin):
|
---|
| 19 | list_display = ['accespoint', 'latitude', 'longitude', 'signaal']
|
---|
| 20 | search_fields = ['accespoint__ssid']
|
---|
| 21 | admin.site.register(Meting, MetingAdmin)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.