From d421e56e0924487861e6cf5300f462c9e66fd376 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 26 May 2024 20:47:03 +0100 Subject: Correctly handles the unique constraint on feature_slot --- pyblackbird_cc/resources/forms.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pyblackbird_cc/resources/forms.py') diff --git a/pyblackbird_cc/resources/forms.py b/pyblackbird_cc/resources/forms.py index ca38640..d0fb001 100644 --- a/pyblackbird_cc/resources/forms.py +++ b/pyblackbird_cc/resources/forms.py @@ -56,7 +56,8 @@ class ResourceCreateForm(forms.Form): card_description = forms.CharField( max_length=1000, widget=forms.Textarea, - help_text="If you enter text here, it will be used in the 'card' description box on the home page. Max 1000 characters.", + help_text=("If you enter text here, it will be used in the 'card' description " + "box on the home page. Max 1000 characters."), ) resource_type = forms.ModelChoiceField(queryset=ResourceType.objects.all()) age_range = forms.ChoiceField( @@ -111,7 +112,8 @@ class ResourceCreateForm(forms.Form): min_value=1, max_value=3, required=False, - help_text="Please enter either 1, 2 or 3 here. This will dictate where on the page this resource will feature on the main list page.", + help_text=("Please enter either 1, 2 or 3 here. This will dictate where on the page " + "this resource will feature on the main list page."), ) def clean_thumbnail_files(self): -- cgit v1.2.3