Chunk uploading: implement properly using a custom Parser.

This commit is contained in:
Tom Hacohen
2020-08-04 13:42:28 +03:00
parent 11001ed62c
commit 1d5baece1e
4 changed files with 52 additions and 5 deletions

View File

@@ -100,6 +100,9 @@ class CollectionItemChunk(models.Model):
def __str__(self):
return self.uid
class Meta:
unique_together = ('item', 'uid')
def generate_stoken_uid():
return get_random_string(32, allowed_chars='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_')