From d20c71fd3bea17ab88f45985196e266668620615 Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Tue, 11 Jan 2022 15:01:43 +0100 Subject: increase max char count for additional fields --- client/models.py | 10 +++++----- version.txt | 2 +- 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 -- cgit v1.2.1