10 lines
214 B
Python
10 lines
214 B
Python
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
|