Items must have a uid now (not null).

This is due to the previous change.
This commit is contained in:
Tom Hacohen
2020-06-23 13:00:51 +03:00
parent 267d749c45
commit 291ebaa3f7
3 changed files with 26 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ class Collection(models.Model):
class CollectionItem(models.Model):
uid = models.CharField(db_index=True, blank=False, null=True,
uid = models.CharField(db_index=True, blank=False,
max_length=43, validators=[UidValidator])
collection = models.ForeignKey(Collection, related_name='items', on_delete=models.CASCADE)
version = models.PositiveSmallIntegerField()