mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-19 12:59:36 +02:00
created_at and updated_at fields
This commit is contained in:
parent
4abaaa5fb3
commit
c6633a17cb
11 changed files with 81 additions and 39 deletions
|
@ -36,6 +36,7 @@ class Adventure(models.Model):
|
|||
latitude = models.DecimalField(max_digits=9, decimal_places=6, null=True, blank=True)
|
||||
collection = models.ForeignKey('Collection', on_delete=models.CASCADE, blank=True, null=True)
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
updated_at = models.DateTimeField(auto_now=True)
|
||||
|
||||
def clean(self):
|
||||
if self.collection:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue