From b465be56947ec71af99a577789d408b4edb3dc3f Mon Sep 17 00:00:00 2001 From: RedDragonWebDesign Date: Fri, 19 May 2023 01:36:42 -0700 Subject: [PATCH] Increase character limit on suggest page From 40 characters to 80 characters Bug: T330457 --- TWLight/resources/factories.py | 2 +- TWLight/resources/forms.py | 2 +- TWLight/resources/models.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TWLight/resources/factories.py b/TWLight/resources/factories.py index 684d1895fc..6e3fedb81e 100644 --- a/TWLight/resources/factories.py +++ b/TWLight/resources/factories.py @@ -23,7 +23,7 @@ class Meta: model = Suggestion strategy = factory.CREATE_STRATEGY - suggested_company_name = factory.Faker("pystr", max_chars=40) + suggested_company_name = factory.Faker("pystr", max_chars=80) company_url = factory.Faker("url", locale=random.choice(settings.FAKER_LOCALES)) diff --git a/TWLight/resources/forms.py b/TWLight/resources/forms.py index 50cde18f47..96d81ad601 100644 --- a/TWLight/resources/forms.py +++ b/TWLight/resources/forms.py @@ -7,7 +7,7 @@ class SuggestionForm(forms.Form): - suggested_company_name = forms.CharField(max_length=40) + suggested_company_name = forms.CharField(max_length=80) description = forms.CharField(widget=forms.Textarea, max_length=500) company_url = forms.URLField(initial="http://") next = forms.CharField(widget=forms.HiddenInput, max_length=40) diff --git a/TWLight/resources/models.py b/TWLight/resources/models.py index 4f2647a8e9..44133968aa 100644 --- a/TWLight/resources/models.py +++ b/TWLight/resources/models.py @@ -582,7 +582,7 @@ class Meta: ordering = ["suggested_company_name"] suggested_company_name = models.CharField( - max_length=40, help_text="Potential partner's name (e.g. McFarland)." + max_length=80, help_text="Potential partner's name (e.g. McFarland)." ) description = models.TextField(