From 80e26b9e0dc5cb514f707cb054cef5c2024e55e8 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Mon, 22 Dec 2014 14:22:38 +0100 Subject: [PATCH] Add Species model --- booking/models.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 booking/models.py diff --git a/booking/models.py b/booking/models.py new file mode 100644 index 0000000..61f3d30 --- /dev/null +++ b/booking/models.py @@ -0,0 +1,9 @@ +from django.db import models + +class Species(models.Model): + """Model to hold the Ducks’ species""" + + name = models.CharField(max_length = 40, unique = True) + + def __str__(self): + return self.name