pycodestyle cleanup

This commit is contained in:
John Anderson 2018-07-21 15:24:48 -04:00
parent b2abad523b
commit 2216758e43
2 changed files with 1 additions and 3 deletions

View File

@ -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']

View File

@ -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