fix base62 url, add padding 0 if < 22 char

This commit is contained in:
Your Name 2023-02-13 00:45:35 -05:00 committed by Henri Dickson
parent 5eb8f8fd4e
commit 0af84da668

View file

@ -285,7 +285,7 @@ class Item(SoftDeleteMixin, PolymorphicModel):
@property
def uuid(self):
return base62.encode(self.uid.int)
return base62.encode(self.uid.int).zfill(22)
@property
def url(self):