diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-08-21 16:46:24 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-08-21 16:46:24 +0200 |
commit | 57ba98588f8b5234bf64adfc88e2038f845d33d5 (patch) | |
tree | 14dfb4854759732e5f57953d0c89879bab689c21 | |
parent | eecc7eac9112389c0b76e71cc831b21e889f1ab6 (diff) | |
download | Comm-on-net-57ba98588f8b5234bf64adfc88e2038f845d33d5.tar.bz2 Comm-on-net-57ba98588f8b5234bf64adfc88e2038f845d33d5.zip |
Larger char fields
-rw-r--r-- | commcrawler/migrations/0002_auto_20190821_1646.py | 30 | ||||
-rw-r--r-- | commcrawler/models.py | 7 | ||||
-rw-r--r-- | commorganization/migrations/0002_auto_20190821_1645.py | 35 | ||||
-rw-r--r-- | commorganization/models.py | 8 |
4 files changed, 74 insertions, 6 deletions
diff --git a/commcrawler/migrations/0002_auto_20190821_1646.py b/commcrawler/migrations/0002_auto_20190821_1646.py new file mode 100644 index 0000000..b8558de --- /dev/null +++ b/commcrawler/migrations/0002_auto_20190821_1646.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11 on 2019-08-21 14:46 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('commcrawler', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='crawl', + name='name', + field=models.CharField(max_length=2000, unique=True, verbose_name='Name'), + ), + migrations.AlterField( + model_name='crawl', + name='time_out', + field=models.PositiveIntegerField(default=10, help_text='Maximum delay for crawling a target (minutes). 0 for no delay', verbose_name='Maximum delay'), + ), + migrations.AlterField( + model_name='crawlresult', + name='redirection', + field=models.URLField(blank=True, max_length=2000, null=True, verbose_name='Redirection'), + ), + ] diff --git a/commcrawler/models.py b/commcrawler/models.py index ef99c4f..e25da02 100644 --- a/commcrawler/models.py +++ b/commcrawler/models.py @@ -33,7 +33,8 @@ class Crawl(models.Model): ('M', _("Match link in progress")), ('F', _("Finished")) ) - name = models.CharField(verbose_name=_("Name"), max_length=200, unique=True) + name = models.CharField(verbose_name=_("Name"), max_length=2000, + unique=True) time_out = models.PositiveIntegerField( verbose_name=_("Maximum delay"), default=10, help_text=_("Maximum delay for crawling a target (" @@ -136,7 +137,9 @@ class CrawlResult(models.Model): bad_ssl = models.BooleanField( verbose_name=_("Bad SSL certificate"), default=False) redirection = models.URLField( - verbose_name=_("Redirection"), blank=True, null=True) + verbose_name=_("Redirection"), blank=True, null=True, + max_length=2000 + ) class Meta: verbose_name = _("Crawl result") diff --git a/commorganization/migrations/0002_auto_20190821_1645.py b/commorganization/migrations/0002_auto_20190821_1645.py new file mode 100644 index 0000000..56d0ff0 --- /dev/null +++ b/commorganization/migrations/0002_auto_20190821_1645.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11 on 2019-08-21 14:45 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('commorganization', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='area', + name='name', + field=models.CharField(max_length=2000, verbose_name='Name'), + ), + migrations.AlterField( + model_name='areatype', + name='name', + field=models.CharField(max_length=2000, verbose_name='Name'), + ), + migrations.AlterField( + model_name='organization', + name='name', + field=models.CharField(max_length=2000, verbose_name='Name'), + ), + migrations.AlterField( + model_name='organizationtype', + name='name', + field=models.CharField(max_length=2000, verbose_name='Name'), + ), + ] diff --git a/commorganization/models.py b/commorganization/models.py index a2b0994..c57deef 100644 --- a/commorganization/models.py +++ b/commorganization/models.py @@ -3,7 +3,7 @@ from django.utils.translation import ugettext_lazy as _ class AreaType(models.Model): - name = models.CharField(_("Name"), max_length=200) + name = models.CharField(_("Name"), max_length=2000) class Meta: verbose_name = _("Area type") @@ -15,7 +15,7 @@ class AreaType(models.Model): class Area(models.Model): - name = models.CharField(verbose_name=_("Name"), max_length=200) + name = models.CharField(verbose_name=_("Name"), max_length=2000) area_type = models.ForeignKey( AreaType, on_delete=models.CASCADE, verbose_name=_("Type")) population = models.IntegerField(verbose_name=_("Population"), blank=True, @@ -39,7 +39,7 @@ class Area(models.Model): class OrganizationType(models.Model): - name = models.CharField(_("Name"), max_length=200) + name = models.CharField(_("Name"), max_length=2000) parent = models.ForeignKey("OrganizationType", verbose_name=_("Parent"), blank=True, null=True) @@ -55,7 +55,7 @@ class OrganizationType(models.Model): class Organization(models.Model): - name = models.CharField(verbose_name=_("Name"), max_length=200) + name = models.CharField(verbose_name=_("Name"), max_length=2000) area = models.ForeignKey( Area, on_delete=models.SET_NULL, verbose_name=_("Area"), blank=True, null=True |