fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4c459c7
)
fix list delete
author
Radek Czajka
<rczajka@rczajka.pl>
Wed, 12 Nov 2025 14:56:47 +0000
(15:56 +0100)
committer
Radek Czajka
<rczajka@rczajka.pl>
Wed, 12 Nov 2025 14:56:47 +0000
(15:56 +0100)
src/social/api/views.py
patch
|
blob
|
history
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):
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
@never_cache