aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/resources/forms.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-05-26 20:47:03 +0100
committerMatthew Lemon <y@yulqen.org>2024-05-26 20:47:03 +0100
commitd421e56e0924487861e6cf5300f462c9e66fd376 (patch)
tree5340955b351772dfc9ec38c7a80035b5781cc93a /pyblackbird_cc/resources/forms.py
parent610177be35ec791edae9577f104d0132f2a28364 (diff)
Correctly handles the unique constraint on feature_slot
Diffstat (limited to 'pyblackbird_cc/resources/forms.py')
-rw-r--r--pyblackbird_cc/resources/forms.py6
1 files changed, 4 insertions, 2 deletions
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):