duck-booking-tool/booking/models.py

18 lines
400 B
Python
Raw Normal View History

2014-12-22 13:22:38 +00:00
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
2014-12-22 13:52:17 +00:00
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