fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix list delete
[wolnelektury.git]
/
src
/
social
/
api
/
views.py
diff --git
a/src/social/api/views.py
b/src/social/api/views.py
index
402245d
..
bf35297
100644
(file)
--- a/
src/social/api/views.py
+++ b/
src/social/api/views.py
@@
-237,10
+237,9
@@
class ListView(RetrieveUpdateDestroyAPIView):
return Response(self.get_serializer(instance).data)
def perform_destroy(self, instance):
- instance.update(
- deleted=True,
- updated_at=now()
- )
+ instance.deleted = True
+ instance.updated_at = now()
+ instance.save()
@never_cache