Add Species model
This commit is contained in:
parent
4709655808
commit
80e26b9e0d
9
booking/models.py
Normal file
9
booking/models.py
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user