Add Location model
This commit is contained in:
parent
80e26b9e0d
commit
cd1d99af38
@ -7,3 +7,11 @@ class Species(models.Model):
|
||||
|
||||
def __str__(self):
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user