Conformity with latest flake8 version

This commit is contained in:
Raphael Michel
2017-10-24 12:44:17 +02:00
parent 2910160af9
commit c33fc7630e
3 changed files with 13 additions and 13 deletions

View File

@@ -55,10 +55,10 @@ class LoggingMixin:
event = self.event
if user and not user.is_authenticated:
user = None
l = LogEntry(content_object=self, user=user, action_type=action, event=event, api_token=api_token)
logentry = LogEntry(content_object=self, user=user, action_type=action, event=event, api_token=api_token)
if data:
l.data = json.dumps(data, cls=CustomJSONEncoder)
l.save()
logentry.data = json.dumps(data, cls=CustomJSONEncoder)
logentry.save()
class LoggedModel(models.Model, LoggingMixin):