Ignore:
Timestamp:
Aug 27, 2011, 4:12:51 PM (13 years ago)
Author:
rick
Message:

Better searching...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/gheat/admin.py

    r9579 r9585  
    55  list_display = ['ssid','mac', 'organization']
    66  search_fields = ['ssid', 'mac', 'organization']
     7admin.site.register(Accespoint, AccespointAdmin)
    78
    8 admin.site.register(Accespoint, AccespointAdmin)
    9 admin.site.register(Apparatuur)
    10 admin.site.register(Gebruiker)
    119class MeetBestandInline(admin.TabularInline):
    1210  model = MeetBestand
    1311class MeetRondjeAdmin(admin.ModelAdmin):
    1412  inlines = [ MeetBestandInline, ]
     13admin.site.register(MeetRondje, MeetRondjeAdmin)
    1514
    16 admin.site.register(MeetRondje, MeetRondjeAdmin)
    17 admin.site.register(Meting)
     15admin.site.register(Apparatuur)
     16admin.site.register(Gebruiker)
     17
     18class MetingAdmin(admin.ModelAdmin):
     19  list_display = ['accespoint', 'latitude', 'longitude', 'signaal']
     20  search_fields = ['accespoint__ssid']
     21admin.site.register(Meting, MetingAdmin)
Note: See TracChangeset for help on using the changeset viewer.