mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-17 04:32:51 -06:00
Strip microseconds from JournalEntry creation time
This commit is contained in:
parent
e52702f6c2
commit
8a8342b106
@ -413,7 +413,8 @@ class JournalEntry(BigIDModel):
|
|||||||
verbose_name_plural = 'journal entries'
|
verbose_name_plural = 'journal entries'
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return f"{self.created} - {self.get_kind_display()}"
|
time_created = self.created.replace(microsecond=0)
|
||||||
|
return f"{time_created} - {self.get_kind_display()}"
|
||||||
|
|
||||||
def get_kind_class(self):
|
def get_kind_class(self):
|
||||||
return JournalEntryKindChoices.CSS_CLASSES.get(self.kind)
|
return JournalEntryKindChoices.CSS_CLASSES.get(self.kind)
|
||||||
|
Loading…
Reference in New Issue
Block a user