Add Location model

This commit is contained in:
Gergely Polonkai 2014-12-22 14:52:17 +01:00 committed by Gergely Polonkai
parent 80e26b9e0d
commit cd1d99af38

View File

@ -7,3 +7,11 @@ class Species(models.Model):
def __str__(self): def __str__(self):
return self.name return self.name
class Location(models.Model):
"""Model to hold the possible locations of the Ducks"""
name = models.CharField(max_length = 50)
def __str__(self):
return self.name