Skip to content
Snippets Groups Projects
Commit 423c05d2 authored by Jonathan Seguin's avatar Jonathan Seguin
Browse files

Allow empty datasets

parent cc81b1ce
No related branches found
No related tags found
1 merge request!42Resolve "Enable creation of empty datasets"
# Generated by Django 2.0.13 on 2020-01-13 20:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('portal', '0018_auto_20191206_0739'),
]
operations = [
migrations.AlterField(
model_name='dataset',
name='files',
field=models.ManyToManyField(blank=True, related_name='datasets', to='portal.DataFile', verbose_name='Files'),
),
]
......@@ -275,7 +275,7 @@ class DataSet(models.Model):
share_profiles = models.ManyToManyField(Profile, blank=True, related_name='shared_datasets', verbose_name=_('Share with these users'))
share_labs = models.ManyToManyField(Lab, blank=True, related_name='shared_datasets', verbose_name=_('Share with these labs'))
share_groups = models.ManyToManyField(ShareGroup, blank=True, related_name='shared_datasets', verbose_name=_('Share with these groups'))
files = models.ManyToManyField(DataFile, related_name='datasets', verbose_name=_('Files'))
files = models.ManyToManyField(DataFile, related_name='datasets', verbose_name=_('Files'), blank=True)
objects = DataSetManager()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment