pad ids to len 7 for storage

This commit is contained in:
j 2011-12-27 00:06:58 +05:30
commit d070cb616b
3 changed files with 4 additions and 3 deletions

View file

@ -122,7 +122,7 @@ class List(models.Model):
return response
def path(self, name=''):
h = "%06d" % self.id
h = "%07d" % self.id
return os.path.join('lists', h[:2], h[2:4], h[4:6], h[6:], name)
def update_icon(self):