Fixed error in autoupdate. See #2248.
This commit is contained in:
parent
e688a345c0
commit
f191956dd9
@ -90,7 +90,7 @@ def send_data(message):
|
|||||||
channel = Group('user-{}'.format(user.id))
|
channel = Group('user-{}'.format(user.id))
|
||||||
output = {
|
output = {
|
||||||
'collection': message['collection_string'],
|
'collection': message['collection_string'],
|
||||||
'id': instance.get_rest_pk(),
|
'id': message['pk'], # == instance.get_rest_pk()
|
||||||
'action': 'deleted' if message['is_deleted'] else 'changed'}
|
'action': 'deleted' if message['is_deleted'] else 'changed'}
|
||||||
if not message['is_deleted']:
|
if not message['is_deleted']:
|
||||||
data = access_permissions.get_restricted_data(full_data, user)
|
data = access_permissions.get_restricted_data(full_data, user)
|
||||||
|
Loading…
Reference in New Issue
Block a user