X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9b46fa5812ae6d152cef155956b435b4ba034df8..b37e135d6fc3938fe91fbb5462f6fdd11797199e:/src/social/models.py diff --git a/src/social/models.py b/src/social/models.py index e50ff0775..7f22f97d2 100644 --- a/src/social/models.py +++ b/src/social/models.py @@ -337,12 +337,14 @@ class UserList(Syncable, models.Model): favorites=True ) except cls.DoesNotExist: + n = now() 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