Fixed error in autoupdate. See #2248.

This commit is contained in:
Norman Jäckel 2016-08-03 16:12:52 +02:00
parent e688a345c0
commit f191956dd9

View File

@ -90,7 +90,7 @@ def send_data(message):
channel = Group('user-{}'.format(user.id))
output = {
'collection': message['collection_string'],
'id': instance.get_rest_pk(),
'id': message['pk'], # == instance.get_rest_pk()
'action': 'deleted' if message['is_deleted'] else 'changed'}
if not message['is_deleted']:
data = access_permissions.get_restricted_data(full_data, user)