summaryrefslogtreecommitdiff
path: root/commorganization/models.py
diff options
context:
space:
mode:
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
commit57ba98588f8b5234bf64adfc88e2038f845d33d5 (patch)
tree14dfb4854759732e5f57953d0c89879bab689c21 /commorganization/models.py
parenteecc7eac9112389c0b76e71cc831b21e889f1ab6 (diff)
downloadComm-on-net-57ba98588f8b5234bf64adfc88e2038f845d33d5.tar.bz2
Comm-on-net-57ba98588f8b5234bf64adfc88e2038f845d33d5.zip
Larger char fields
Diffstat (limited to 'commorganization/models.py')
-rw-r--r--commorganization/models.py8
1 files changed, 4 insertions, 4 deletions
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