12 lines
375 B
Python
12 lines
375 B
Python
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
|