From 2ca0ceade40725bdcd03f885e36cd3fd0d340d73 Mon Sep 17 00:00:00 2001 From: mpeltriaux Date: Mon, 15 Nov 2021 14:08:29 +0100 Subject: [PATCH] #38 User requests * implements 4) "Comment fields should be of unlimited size" --- compensation/models.py | 3 +-- konova/models.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/compensation/models.py b/compensation/models.py index 15aa30e6..30d5daad 100644 --- a/compensation/models.py +++ b/compensation/models.py @@ -32,8 +32,7 @@ class Payment(BaseResource): """ amount = models.FloatField(validators=[MinValueValidator(limit_value=0.00)]) due_on = models.DateField(null=True, blank=True) - comment = models.CharField( - max_length=1000, + comment = models.TextField( null=True, blank=True, help_text="Refers to german money transfer 'Verwendungszweck'", diff --git a/konova/models.py b/konova/models.py index cc836a20..7dbe4f73 100644 --- a/konova/models.py +++ b/konova/models.py @@ -241,7 +241,7 @@ class Deadline(BaseResource): type = models.CharField(max_length=255, null=True, blank=True, choices=DeadlineType.choices) date = models.DateField(null=True, blank=True) - comment = models.CharField(max_length=1000, null=True, blank=True) + comment = models.TextField(null=True, blank=True) def __str__(self): return self.type