Commit 453ac0d7 authored by felix.herrmann's avatar felix.herrmann
Browse files

feat(maxlength): set higher values for max_length in dddatasets

parent aa349dac
# Generated by Django 2.2.12 on 2020-06-01 22:10
# Generated by Django 2.2.12 on 2020-06-02 10:01
from django.db import migrations
import django_bleach.models
......@@ -14,46 +14,56 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='category',
name='description',
field=django_bleach.models.BleachField(max_length=800),
field=django_bleach.models.BleachField(max_length=2000),
),
migrations.AlterField(
model_name='dataset',
name='description',
field=django_bleach.models.BleachField(max_length=800, verbose_name='Technical description'),
field=django_bleach.models.BleachField(max_length=2400, verbose_name='Technical description'),
),
migrations.AlterField(
model_name='dataset',
name='funding',
field=django_bleach.models.BleachField(blank=True, max_length=400),
field=django_bleach.models.BleachField(blank=True, max_length=1200),
),
migrations.AlterField(
model_name='dataset',
name='institutional_affiliation',
field=django_bleach.models.BleachField(blank=True, max_length=400),
field=django_bleach.models.BleachField(blank=True, max_length=1200),
),
migrations.AlterField(
model_name='dataset',
name='related_dataset_text',
field=django_bleach.models.BleachField(blank=True, max_length=800),
field=django_bleach.models.BleachField(blank=True, max_length=1200),
),
migrations.AlterField(
model_name='dataset',
name='sources_of_data',
field=django_bleach.models.BleachField(max_length=800),
field=django_bleach.models.BleachField(max_length=6000),
),
migrations.AlterField(
model_name='datasetexternallink',
name='site_description',
field=django_bleach.models.BleachField(blank=True, help_text='Brief description of the external repository or web site', max_length=400),
),
migrations.AlterField(
model_name='datasetexternallink',
name='site_text',
field=django_bleach.models.BleachField(blank=True, help_text='In-depth description of the external repository or web site', max_length=800),
field=django_bleach.models.BleachField(blank=True, help_text='In-depth description of the external repository or web site', max_length=2000),
),
migrations.AlterField(
model_name='documentation',
name='description',
field=django_bleach.models.BleachField(blank=True, max_length=2000),
),
migrations.AlterField(
model_name='documentation',
name='text',
field=django_bleach.models.BleachField(blank=True, max_length=800),
field=django_bleach.models.BleachField(blank=True, max_length=12000),
),
migrations.AlterField(
model_name='license',
name='individual_license',
field=django_bleach.models.BleachField(blank=True, max_length=800),
field=django_bleach.models.BleachField(blank=True, max_length=12000),
),
]
......@@ -67,7 +67,7 @@ class Category(models.Model):
name = models.CharField(max_length=400)
slug = models.CharField(max_length=400)
image = models.ImageField(blank=True, null=True)
description = BleachField(max_length=800)
description = BleachField(max_length=2000)
sponsors = models.ManyToManyField(
"Sponsor", blank=True, related_name="category_sponsors_sponsor"
)
......@@ -199,7 +199,7 @@ class License(models.Model):
related_name="license_license_page",
on_delete=models.PROTECT,
)
individual_license = BleachField(blank=True, max_length=800)
individual_license = BleachField(blank=True, max_length=12000)
def get_license_name(self):
if self.license_type == "STD":
......@@ -277,8 +277,8 @@ class Documentation(models.Model):
subtitle = models.CharField(max_length=200, blank=True)
docu_type = models.CharField(max_length=3, choices=DOCU_TYPES, default="GEN",)
file = models.FileField(blank=True, null=True) # upload_to='datasets/')
description = BleachField(max_length=280, blank=True)
text = BleachField(blank=True, max_length=800)
description = BleachField(max_length=2000, blank=True)
text = BleachField(blank=True, max_length=12000)
public = models.BooleanField(default=False)
def __str__(self):
......@@ -317,13 +317,13 @@ class DataSetExternalLink(models.Model):
max_length=200, help_text=_("Title of the external repository or web site"),
)
site_description = BleachField(
max_length=280,
max_length=400,
blank=True,
help_text=_("Brief description of the external repository or web site"),
)
site_text = BleachField(
blank=True,
max_length=800,
max_length=2000,
help_text=_("In-depth description of the external repository or web site"),
)
......@@ -409,9 +409,9 @@ class DataSet(models.Model):
datatypes = models.ManyToManyField(
"DataType", related_name="dataset_datatypes_datatype"
)
description = BleachField(verbose_name="Technical description", max_length=800)
description = BleachField(verbose_name="Technical description", max_length=2400)
keyword_tags = TaggableManager("KeywordTags", blank=True, through=KeywordTags)
sources_of_data = BleachField(max_length=800)
sources_of_data = BleachField(max_length=6000)
languages_of_data = TaggableManager(
"LanguageTags", blank=True, through=LanguageTags
)
......@@ -449,7 +449,7 @@ class DataSet(models.Model):
null=True,
)
related_dataset_text = BleachField(blank=True, max_length=800)
related_dataset_text = BleachField(blank=True, max_length=1200)
related_dataset = models.ManyToManyField(
"DataSet",
related_name="dataset_related_dataset_dataset",
......@@ -457,11 +457,11 @@ class DataSet(models.Model):
help_text=_("Undo choice with CTRL–Mouse Click"),
)
# context = models.TextField(blank=True,)
institutional_affiliation = BleachField(blank=True, max_length=400)
institutional_affiliation = BleachField(blank=True, max_length=1200)
sponsors = models.ManyToManyField(
"Sponsor", blank=True, related_name="dataset_sponsors"
)
funding = BleachField(blank=True, max_length=400)
funding = BleachField(blank=True, max_length=1200)
publications = models.ManyToManyField(
"ddpublications.Publication",
blank=True,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment