1
0
mirror of https://github.com/etesync/server synced 2024-11-22 08:48:07 +00:00

Collection Item Revision: dissalow blank for the current field.

This commit is contained in:
Tom Hacohen 2020-02-26 20:04:26 +02:00
parent 0ee00e1a9f
commit e0d593a9b6
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 3.0.3 on 2020-02-26 18:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('django_etesync', '0017_auto_20200226_1455'),
]
operations = [
migrations.AlterField(
model_name='collectionitemrevision',
name='current',
field=models.BooleanField(db_index=True, default=True, null=True),
),
]

View File

@ -80,7 +80,7 @@ class CollectionItemRevision(models.Model):
item = models.ForeignKey(CollectionItem, related_name='revisions', on_delete=models.CASCADE)
chunks = models.ManyToManyField(CollectionItemChunk, related_name='items')
hmac = models.CharField(max_length=50, blank=False, null=False)
current = models.BooleanField(db_index=True, default=True, blank=True, null=True)
current = models.BooleanField(db_index=True, default=True, null=True)
deleted = models.BooleanField(default=False)
class Meta: