PEP8 clenaup

This commit is contained in:
Jeremy Stretch
2016-06-16 15:02:01 -04:00
parent 15938ff98f
commit 741f93999b
6 changed files with 8 additions and 10 deletions

View File

@@ -117,11 +117,11 @@ class UserActionManager(models.Manager):
# Actions affecting a single object
def log_action(self, user, obj, action, message):
self.model.objects.create(
content_type = ContentType.objects.get_for_model(obj),
object_id = obj.pk,
user = user,
action = action,
message = message,
content_type=ContentType.objects.get_for_model(obj),
object_id=obj.pk,
user=user,
action=action,
message=message,
)
def log_create(self, user, obj, message=''):