Skip to content
Browse files

Make slug input field hidde instead of manual.

  • Loading branch information...
1 parent fcb2d05 commit b74a1796b85ce852f2a59d8ccfc9bbe1c133db33 @nrb committed Dec 6, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 biblion/forms.py
View
5 biblion/forms.py
@@ -16,6 +16,9 @@
class BiblionForm(forms.ModelForm):
contributors = forms.ModelMultipleChoiceField(queryset=User.objects.none())
+ slug = forms.CharField(
+ widget = forms.HiddenInput()
+ )
class Meta:
model = Biblion
@@ -59,7 +62,7 @@ class PostForm(forms.ModelForm):
widget = forms.TextInput(),
)
slug = forms.CharField(
- widget = forms.TextInput()
+ widget = forms.HiddenInput()
)
teaser = forms.CharField(
widget = forms.Textarea(),

0 comments on commit b74a179

Please sign in to comment.
Something went wrong with that request. Please try again.