Merge pull request #2250 from normanjaeckel/FixAutoupdate
Fixed error in autoupdate. See #2248.
This commit is contained in:
commit
c06d05a8e6
@ -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