Changeset 9097


Ignore:
Timestamp:
Apr 21, 2011, 3:37:20 PM (14 years ago)
Author:
dennisw
Message:

Models.py modified for nodes.

File:
1 edited

Legend:

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

    r9054 r9097  
    2424class MeetRondje(models.Model):
    2525  datum = models.DateTimeField()
    26   naam = models.CharField(max_length=60)
     26  naam = models.CharField(max_length=64)
    2727  gebruiker = models.ForeignKey(Gebruiker)
    2828  apparatuur = models.ForeignKey(Apparatuur)
     
    3939  def __unicode__(self):
    4040    return "%s @ %s,%s : %s" % (self.accespoint.ssid, self.latitude, self.longitude, self.signaal)
     41
     42class 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.