Ignore:
Timestamp:
Apr 15, 2011, 6:53:07 PM (14 years ago)
Author:
rick
Message:

Python (and rick) is not happy when mixing TABS with spaces.
Use the following vim (store ~/.vimrc):

set ts=2
set sw=2
set ai
set list
set modeline
set listchars=tab:>-,trail:-
set et

File:
1 edited

Legend:

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

    r9041 r9053  
    44
    55class Accespoint(models.Model):
    6         mac = models.CharField(max_length=17)
    7         ssid = models.CharField(max_length=64)
    8         encryptie = models.BooleanField()
    9         def __unicode__(self):
    10                 return "%s - %s" % (self.mac, self.ssid)
     6  mac = models.CharField(max_length=17)
     7  ssid = models.CharField(max_length=64)
     8  encryptie = models.BooleanField()
     9  def __unicode__(self):
     10    return "%s - %s" % (self.mac, self.ssid)
    1111
    1212class Gebruiker(models.Model):
    13         naam = models.CharField(max_length=64)
    14         email = models.CharField(max_length=64)
    15         def __unicode__(self):
    16                 return "%s - %s" % (self.naam, self.email)
     13  naam = models.CharField(max_length=64)
     14  email = models.CharField(max_length=64)
     15  def __unicode__(self):
     16    return "%s - %s" % (self.naam, self.email)
    1717
    1818class Apparatuur(models.Model):
    19         antenne = models.CharField(max_length=64)
    20         kaart = models.CharField(max_length=64)
    21         def __unicode__(self):
    22                 return "%s - %s" % (self.antenne, self.kaart)
     19  antenne = models.CharField(max_length=64)
     20  kaart = models.CharField(max_length=64)
     21  def __unicode__(self):
     22    return "%s - %s" % (self.antenne, self.kaart)
    2323
    2424class MeetRondje(models.Model):
    25         datum = models.DateTimeField()
    26         naam = models.CharField(max_length=60)
    27         gebruiker = models.ForeignKey(Gebruiker)
    28         apparatuur = models.ForeignKey(Apparatuur)
    29         def __unicode__(self):
    30                 return "%s - %s" % (self.naam)
     25  datum = models.DateTimeField()
     26  naam = models.CharField(max_length=60)
     27  gebruiker = models.ForeignKey(Gebruiker)
     28  apparatuur = models.ForeignKey(Apparatuur)
     29  def __unicode__(self):
     30    return "%s - %s" % (self.naam)
    3131
    3232class Meting(models.Model):
    33         meetrondje = models.ForeignKey(MeetRondje)
    34         accespoint = models.ForeignKey(Accespoint)
    35         latitude = models.FloatField(name='Latitude', db_column='lat')
    36         longitude = models.FloatField(name='Longitude', db_column='lng')
    37         signaal = models.IntegerField(max_length=3)
    38         objects = managers.MetingManager()
     33  meetrondje = models.ForeignKey(MeetRondje)
     34  accespoint = models.ForeignKey(Accespoint)
     35  latitude = models.FloatField(name='Latitude', db_column='lat')
     36  longitude = models.FloatField(name='Longitude', db_column='lng')
     37  signaal = models.IntegerField(max_length=3)
     38  objects = managers.MetingManager()
Note: See TracChangeset for help on using the changeset viewer.