add celery
This commit is contained in:
parent
a5f1e1340a
commit
2d4974369f
1 changed files with 2 additions and 2 deletions
|
|
@ -62,8 +62,8 @@ class ApplicationPushUserViewSet(
|
|||
|
||||
def perform_create(self, serializer):
|
||||
user_uuid = self.kwargs.get('user_uuid')
|
||||
user, _ = User.objects.get_or_create(uuid=user_uuid)
|
||||
push_user = PushUser.objects.submit(user)
|
||||
user = get_object_or_404(User, uuid=user_uuid)
|
||||
push_user = get_object_or_404(PushUser, user=user)
|
||||
application = get_application(self.request)
|
||||
instance = serializer.save(push_user=push_user, application=application)
|
||||
instance.send_push()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue