1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #8463: Change the created field on all change-logged models from date to datetime

This commit is contained in:
jeremystretch
2022-02-08 14:41:44 -05:00
parent 45e5c4eb46
commit 272d6e7437
12 changed files with 506 additions and 15 deletions

View File

@@ -367,10 +367,6 @@ class ImageAttachment(WebhooksMixin, ChangeLoggedModel):
max_length=50,
blank=True
)
# ChangeLoggingMixin.created is a DateField
created = models.DateTimeField(
auto_now_add=True
)
objects = RestrictedQuerySet.as_manager()
@@ -438,9 +434,6 @@ class JournalEntry(WebhooksMixin, ChangeLoggedModel):
ct_field='assigned_object_type',
fk_field='assigned_object_id'
)
created = models.DateTimeField(
auto_now_add=True
)
created_by = models.ForeignKey(
to=User,
on_delete=models.SET_NULL,