mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Extended primary models to include 'created' and 'last_updated' fields
This commit is contained in:
@ -0,0 +1,9 @@
|
||||
from django.db import models
|
||||
|
||||
|
||||
class CreatedUpdatedModel(models.Model):
|
||||
created = models.DateField(auto_now_add=True)
|
||||
last_updated = models.DateTimeField(auto_now=True)
|
||||
|
||||
class Meta:
|
||||
abstract = True
|
||||
|
Reference in New Issue
Block a user