Commit 3f045e9f authored by Michal Čihař's avatar Michal Čihař

Properly return created object from create()

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 788b1243
...@@ -131,7 +131,7 @@ class ChangeManager(models.Manager): ...@@ -131,7 +131,7 @@ class ChangeManager(models.Manager):
"""Wrapper to avoid using anonymous user as change owner""" """Wrapper to avoid using anonymous user as change owner"""
if user is not None and not user.is_authenticated(): if user is not None and not user.is_authenticated():
user = None user = None
super(ChangeManager, self).create(user=user, **kwargs) return super(ChangeManager, self).create(user=user, **kwargs)
@python_2_unicode_compatible @python_2_unicode_compatible
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment