mirror of
https://github.com/jazzband/django-ddp.git
synced 2026-05-04 21:54:52 +00:00
Never assume this.user_id is available.
This commit is contained in:
parent
305b00bc3d
commit
d358ce413a
1 changed files with 1 additions and 1 deletions
|
|
@ -591,7 +591,7 @@ class DDP(APIMixin):
|
|||
sub, created = Subscription.objects.get_or_create(
|
||||
connection_id=this.ws.connection.pk,
|
||||
sub_id=id_,
|
||||
user_id=this.request.user.pk,
|
||||
user_id=getattr(this, 'user_id', None),
|
||||
defaults={
|
||||
'publication': pub.name,
|
||||
'params_ejson': ejson.dumps(params),
|
||||
|
|
|
|||
Loading…
Reference in a new issue