From cd1d99af38506e6b4b2d15ad262e126cdc2264fb Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Mon, 22 Dec 2014 14:52:17 +0100 Subject: [PATCH] Add Location model --- booking/models.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/booking/models.py b/booking/models.py index 61f3d30..5618c8a 100644 --- a/booking/models.py +++ b/booking/models.py @@ -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