Changeset 9590


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

I like to have nodes in here as well.

Location:
src/django_gheat/gheat
Files:
1 added
2 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)
  • src/django_gheat/gheat/models.py

    r9579 r9590  
    6161  ('WirelessLeiden', 'Wireless Leiden'),
    6262)
     63
     64class Node(models.Model):
     65  name = models.CharField(max_length=50)
     66  latitude = models.FloatField(null=True,blank=True)
     67  longitude = models.FloatField(null=True,blank=True)
     68  organization = models.CharField(max_length="50",choices=ORGANIZATION_CHOICES,null=True,blank=True)
    6369
    6470class Accespoint(models.Model):
Note: See TracChangeset for help on using the changeset viewer.