added aviary
This commit is contained in:
parent
f8545a26fe
commit
6af0a15f9e
10 changed files with 50 additions and 6 deletions
12
aviary/models.py
Normal file
12
aviary/models.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
from uuid import uuid4
|
||||
from django.db import models
|
||||
|
||||
|
||||
class Aviary(models.Model):
|
||||
id = models.UUIDField(primary_key=True, default=uuid4, editable=False)
|
||||
description = models.CharField(max_length=256)
|
||||
condition = models.CharField(max_length=256)
|
||||
last_ward_round = models.DateTimeField(auto_now_add=True)
|
||||
|
||||
def __str__(self):
|
||||
return self.description
|
Loading…
Add table
Add a link
Reference in a new issue