summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-04-03 11:35:50 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-04-03 11:35:50 +0200
commit39cf99e33581f23e25f3bd29fc263b4ca4c42adb (patch)
treef758e8c6aedc29b766a93761b5d0355f4f5c2fbc /ishtar_common/models.py
parente8e510620e625994b32065db9ccc4616e4e698fc (diff)
downloadIshtar-39cf99e33581f23e25f3bd29fc263b4ca4c42adb.tar.bz2
Ishtar-39cf99e33581f23e25f3bd29fc263b4ca4c42adb.zip
Types: charfield to textfield for name and slug
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 8f8117b6c..8d0339b92 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -437,9 +437,9 @@ class GeneralType(Cached, models.Model):
"""
Abstract class for "types"
"""
- label = models.CharField(_(u"Label"), max_length=100)
- txt_idx = models.CharField(
- _(u"Textual ID"), validators=[validate_slug], max_length=100,
+ label = models.TextField(_(u"Label"))
+ txt_idx = models.TextField(
+ _(u"Textual ID"), validators=[validate_slug],
unique=True,
help_text=_(
u"The slug is the standardized version of the name. It contains "
@@ -825,7 +825,7 @@ class HierarchicalType(GeneralType):
class ItemKey(models.Model):
- key = models.CharField(_(u"Key"), max_length=100)
+ key = models.TextField(_(u"Key"))
content_type = models.ForeignKey(ContentType)
object_id = models.PositiveIntegerField()
content_object = GenericForeignKey('content_type', 'object_id')