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:
9b46fa5
)
fix
author
Radek Czajka
<rczajka@rczajka.pl>
Fri, 22 Aug 2025 13:34:30 +0000
(15:34 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Fri, 22 Aug 2025 13:34:30 +0000
(15:34 +0200)
src/social/models.py
patch
|
blob
|
history
diff --git
a/src/social/models.py
b/src/social/models.py
index
e50ff07
..
7f22f97
100644
(file)
--- a/
src/social/models.py
+++ b/
src/social/models.py
@@
-337,12
+337,14
@@
class UserList(Syncable, models.Model):
favorites=True
)
except cls.DoesNotExist:
favorites=True
)
except cls.DoesNotExist:
+ n = now()
if create:
return cls.objects.create(
user=user,
favorites=True,
if create:
return cls.objects.create(
user=user,
favorites=True,
- slug=get_random_hash(name),
- updated_at=now()
+ slug=get_random_hash('favorites'),
+ updated_at=n,
+ reported_timestamp=n,
)
else:
return None
)
else:
return None