fix base62 url, add padding 0 if < 22 char
This commit is contained in:
parent
5eb8f8fd4e
commit
0af84da668
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue