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
|
max_length=100
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
ordering = ['created']
|
ordering = ['created']
|
||||||
|
|
||||||
@ -1847,7 +1846,6 @@ class Interface(ComponentModel):
|
|||||||
objects = InterfaceQuerySet.as_manager()
|
objects = InterfaceQuerySet.as_manager()
|
||||||
tags = TaggableManager()
|
tags = TaggableManager()
|
||||||
|
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
ordering = ['device', 'name']
|
ordering = ['device', 'name']
|
||||||
unique_together = ['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
|
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.
|
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
|
return
|
||||||
|
|
||||||
# Determine what action is being performed. The post_save signal sends a `created` boolean, whereas post_delete
|
# 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