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
commitc804c16f8018a2ec043703e4ebed304beadad4aa (patch)
treef758e8c6aedc29b766a93761b5d0355f4f5c2fbc /ishtar_common/models.py
parente21da1f4b88c97d2abc7ffa6cd66fbf98ce222b4 (diff)
downloadIshtar-c804c16f8018a2ec043703e4ebed304beadad4aa.tar.bz2
Ishtar-c804c16f8018a2ec043703e4ebed304beadad4aa.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')