Merge pull request #2250 from normanjaeckel/FixAutoupdate

Fixed error in autoupdate. See #2248.
This commit is contained in:
Emanuel Schütze 2016-08-03 21:23:28 +02:00 committed by GitHub
commit c06d05a8e6

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)