We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9798dd2 commit 80d5927Copy full SHA for 80d5927
tagging/forms.py
@@ -12,6 +12,7 @@
12
class TagAdminForm(forms.ModelForm):
13
class Meta:
14
model = Tag
15
+ fields = ('name',)
16
17
def clean_name(self):
18
value = self.cleaned_data['name']
@@ -21,7 +22,7 @@ def clean_name(self):
21
22
elif len(tag_names[0]) > settings.MAX_TAG_LENGTH:
23
raise forms.ValidationError(
24
_('A tag may be no more than %s characters long.') %
- settings.MAX_TAG_LENGTH)
25
+ settings.MAX_TAG_LENGTH)
26
return value
27
28
@@ -38,5 +39,5 @@ def clean(self, value):
38
39
if len(tag_name) > settings.MAX_TAG_LENGTH:
40
41
_('Each tag may be no more than %s characters long.') %
42
43
0 commit comments