Merge pull request #388 from Gluejar/fix-inactive-ebooks

let ebook go to default
pull/1/head
Raymond Yee 2014-09-29 11:44:12 -07:00
commit a02463c117
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ class EbookFileForm(forms.ModelForm):
class EbookForm(forms.ModelForm): class EbookForm(forms.ModelForm):
class Meta: class Meta:
model = Ebook model = Ebook
exclude =( 'created','download_count',) exclude =( 'created', 'download_count', 'active')
widgets = { widgets = {
'edition': forms.HiddenInput, 'edition': forms.HiddenInput,
'user': forms.HiddenInput, 'user': forms.HiddenInput,