aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2022-01-11 15:01:43 +0100
committerAndrea Lepori <alepori@student.ethz.ch>2022-01-11 15:01:53 +0100
commitd20c71fd3bea17ab88f45985196e266668620615 (patch)
tree3bba8bcc5c731bddfb3d5fead063e76c6c0d7213
parentadd authlib to requirements (diff)
downloadscout-subs-d20c71fd3bea17ab88f45985196e266668620615.tar.gz
scout-subs-d20c71fd3bea17ab88f45985196e266668620615.zip
increase max char count for additional fields
Diffstat (limited to '')
-rw-r--r--client/models.py10
-rw-r--r--version.txt2
2 files changed, 6 insertions, 6 deletions
diff --git a/client/models.py b/client/models.py
index cd3cf88..e01fe1f 100644
--- a/client/models.py
+++ b/client/models.py
@@ -15,7 +15,7 @@ class DocumentType(models.Model):
medical_data = models.BooleanField(default=False)
custom_data = models.BooleanField(default=False)
custom_message = models.BooleanField(default=False)
- custom_message_text = models.CharField(default="", max_length=250)
+ custom_message_text = models.CharField(default="", max_length=2048)
staff_only = models.BooleanField(default=False)
max_instances = models.IntegerField(default=0)
name = models.CharField(default="", max_length=250)
@@ -88,15 +88,15 @@ class Document(models.Model):
class KeyVal(models.Model):
container = models.ForeignKey(
Document, db_index=True, on_delete=models.CASCADE)
- key = models.CharField(max_length=240, db_index=True)
- value = models.CharField(max_length=240, db_index=True)
+ key = models.CharField(max_length=2048, db_index=True)
+ value = models.CharField(max_length=2048, db_index=True)
class Keys(models.Model):
container = models.ForeignKey(
DocumentType, db_index=True, on_delete=models.CASCADE)
- key = models.CharField(max_length=240, db_index=True)
- key_extra = models.CharField(max_length=1024, default="")
+ key = models.CharField(max_length=2048, db_index=True)
+ key_extra = models.CharField(max_length=2048, default="")
class UserCode(models.Model):
diff --git a/version.txt b/version.txt
index 4df8563..d03e912 100644
--- a/version.txt
+++ b/version.txt
@@ -1,2 +1,2 @@
version=0.4
-rev=23
+rev=24