зеркало из https://github.com/mozilla/batucada.git
django-activity expects a User instance, not a UserProfile instance
This commit is contained in:
Родитель
47daeb0006
Коммит
aea77f0a0c
|
@ -134,7 +134,7 @@ def project_creation_handler(sender, **kwargs):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import activity
|
import activity
|
||||||
activity.send(project.created_by, 'post', project)
|
activity.send(project.created_by.user, 'post', project)
|
||||||
except ImportError:
|
except ImportError:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,8 @@ def status_creation_handler(sender, **kwargs):
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
import activity
|
import activity
|
||||||
activity.send(status.author, 'post', status, target=status.project)
|
activity.send(
|
||||||
|
status.author.user, 'post', status, target=status.project)
|
||||||
except ImportError:
|
except ImportError:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче