mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-08 16:48:16 -06:00
pycodestyle cleanup
This commit is contained in:
parent
b2abad523b
commit
2216758e43
@ -631,7 +631,6 @@ class RackReservation(ChangeLoggedModel):
|
||||
max_length=100
|
||||
)
|
||||
|
||||
|
||||
class Meta:
|
||||
ordering = ['created']
|
||||
|
||||
@ -1847,7 +1846,6 @@ class Interface(ComponentModel):
|
||||
objects = InterfaceQuerySet.as_manager()
|
||||
tags = TaggableManager()
|
||||
|
||||
|
||||
class Meta:
|
||||
ordering = ['device', 'name']
|
||||
unique_together = ['device', 'name']
|
||||
|
@ -26,7 +26,7 @@ def mark_object_changed(instance, **kwargs):
|
||||
We have to wait until the *end* of the request to the serialize the object, because related fields like tags and
|
||||
custom fields have not yet been updated when the post_save signal is emitted.
|
||||
"""
|
||||
if hasattr(instance, 'log_change') and not instance.__class__._meta.verbose_name in WEBHOOK_MODELS:
|
||||
if hasattr(instance, 'log_change') and instance.__class__._meta.verbose_name not in WEBHOOK_MODELS:
|
||||
return
|
||||
|
||||
# Determine what action is being performed. The post_save signal sends a `created` boolean, whereas post_delete
|
||||
|
Loading…
Reference in New Issue
Block a user