Changeset 9590
- Timestamp:
- Aug 28, 2011, 12:04:53 PM (13 years ago)
- 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, MeetBestand1 from gheat.models import * 2 2 from django.contrib import admin 3 3 … … 13 13 admin.site.register(MeetRondje, MeetRondjeAdmin) 14 14 15 class NodeAdmin(admin.ModelAdmin): 16 list_display = ['name','latitude', 'longitude', 'organization'] 17 ordering = ['name'] 18 admin.site.register(Node, NodeAdmin) 19 15 20 admin.site.register(Apparatuur) 16 21 admin.site.register(Gebruiker) -
src/django_gheat/gheat/models.py
r9579 r9590 61 61 ('WirelessLeiden', 'Wireless Leiden'), 62 62 ) 63 64 class 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) 63 69 64 70 class Accespoint(models.Model):
Note:
See TracChangeset
for help on using the changeset viewer.