зеркало из 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:
|
||||
import activity
|
||||
activity.send(project.created_by, 'post', project)
|
||||
activity.send(project.created_by.user, 'post', project)
|
||||
except ImportError:
|
||||
return
|
||||
|
||||
|
|
|
@ -40,7 +40,8 @@ def status_creation_handler(sender, **kwargs):
|
|||
return
|
||||
try:
|
||||
import activity
|
||||
activity.send(status.author, 'post', status, target=status.project)
|
||||
activity.send(
|
||||
status.author.user, 'post', status, target=status.project)
|
||||
except ImportError:
|
||||
return
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче