mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Conformity with latest flake8 version
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user