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

Fixes #3392: Add database index for ObjectChange time

This commit is contained in:
Jeremy Stretch
2019-08-28 10:48:19 -04:00
parent 3078e366e2
commit 5a911aa5a1
3 changed files with 21 additions and 1 deletions

View File

@@ -882,7 +882,8 @@ class ObjectChange(models.Model):
"""
time = models.DateTimeField(
auto_now_add=True,
editable=False
editable=False,
db_index=True
)
user = models.ForeignKey(
to=User,