Ignore:
Timestamp:
Aug 28, 2011, 12:04:53 PM (13 years ago)
Author:
rick
Message:

I like to have nodes in here as well.

File:
1 edited

Legend:

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

    r9585 r9590  
    1 from gheat.models import Accespoint, Apparatuur, Gebruiker, MeetRondje, Meting, MeetBestand
     1from gheat.models import *
    22from django.contrib import admin
    33
     
    1313admin.site.register(MeetRondje, MeetRondjeAdmin)
    1414
     15class NodeAdmin(admin.ModelAdmin):
     16  list_display = ['name','latitude', 'longitude', 'organization']
     17  ordering = ['name']
     18admin.site.register(Node, NodeAdmin)
     19
    1520admin.site.register(Apparatuur)
    1621admin.site.register(Gebruiker)
Note: See TracChangeset for help on using the changeset viewer.