Skip to content

Commit

Permalink
Use a slug field to ensure URL-friendliness
Browse files Browse the repository at this point in the history
  • Loading branch information
willbarton committed Jul 5, 2024
1 parent c7f9edc commit 4017144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wagtailflags/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


class NewFlagForm(forms.ModelForm):
name = forms.CharField(label="Name", required=True)
name = forms.SlugField(label="Name", required=True)

def clean_name(self):
name = self.cleaned_data["name"]
Expand Down

0 comments on commit 4017144

Please sign in to comment.