Changeset 9097 for src/django_gheat/gheat/models.py
- Timestamp:
- Apr 21, 2011, 3:37:20 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/gheat/models.py
r9054 r9097 24 24 class MeetRondje(models.Model): 25 25 datum = models.DateTimeField() 26 naam = models.CharField(max_length=6 0)26 naam = models.CharField(max_length=64) 27 27 gebruiker = models.ForeignKey(Gebruiker) 28 28 apparatuur = models.ForeignKey(Apparatuur) … … 39 39 def __unicode__(self): 40 40 return "%s @ %s,%s : %s" % (self.accespoint.ssid, self.latitude, self.longitude, self.signaal) 41 42 class nodes(models.Model): 43 naam = models.CharField(max_length=64) 44 ssid = models.CharField(max_length=64) 45 latitude = models.FloatField(name='Latitude', db_column='lat') 46 longitude = models.FloatField(name='Longitude', db_column='lon') 47 def __unicode__(self): 48 return "%s - %s - %s - %s" % (self.naam, self.ssid, self.latitude, self.longitude)
Note:
See TracChangeset
for help on using the changeset viewer.