Changeset 9659


Ignore:
Timestamp:
Sep 4, 2011, 3:12:07 PM (13 years ago)
Author:
rick
Message:

Make the apperatuur look good by default.

File:
1 edited

Legend:

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

    r9638 r9659  
    137137
    138138class Apparatuur(models.Model):
    139   antenne = models.CharField(max_length=64)
    140   kaart = models.CharField(max_length=64)
     139  antenne = models.CharField(max_length=64, default="onbekend")
     140  kaart = models.CharField(max_length=64, default="onbekend")
    141141  def __unicode__(self):
    142142    return "%s - %s" % (self.antenne, self.kaart)
    143143  class Meta:
    144144    verbose_name_plural = 'Apparatuur'
     145    unique_together = ('antenne', 'kaart')
    145146
    146147class MeetRondje(models.Model):
Note: See TracChangeset for help on using the changeset viewer.