Changeset 9054
- Timestamp:
- Apr 15, 2011, 7:00:30 PM (14 years ago)
- Location:
- src/django_gheat/gheat
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/gheat/admin.py
r9041 r9054 1 from gheat.models import Accespoint, Meting, Gebruiker1 from gheat.models import Accespoint, Apparatuur, Gebruiker, MeetRondje, Meting 2 2 from django.contrib import admin 3 3 4 admin.site.register(Accespoint) 5 admin.site.register(Apparatuur) 4 6 admin.site.register(Gebruiker) 7 admin.site.register(MeetRondje) 8 admin.site.register(Meting) -
src/django_gheat/gheat/models.py
r9053 r9054 28 28 apparatuur = models.ForeignKey(Apparatuur) 29 29 def __unicode__(self): 30 return "%s - %s" % (self. naam)30 return "%s - %s" % (self.gebruiker.naam, self.naam) 31 31 32 32 class Meting(models.Model): … … 37 37 signaal = models.IntegerField(max_length=3) 38 38 objects = managers.MetingManager() 39 def __unicode__(self): 40 return "%s @ %s,%s : %s" % (self.accespoint.ssid, self.latitude, self.longitude, self.signaal)
Note:
See TracChangeset
for help on using the changeset viewer.