Skip to content

Commit

Permalink
Fixed #2 where sortable field was causing trouble with vanilla admin
Browse files Browse the repository at this point in the history
  • Loading branch information
David Burke authored and David Burke committed Nov 26, 2012
1 parent 88b8b84 commit f68b9c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions report_builder/admin.py
Expand Up @@ -5,7 +5,7 @@


class DisplayFieldForm(forms.ModelForm):
position = forms.IntegerField(widget=forms.HiddenInput)
position = forms.IntegerField(widget=forms.HiddenInput, required=False)
class Meta:
model = DisplayField

Expand Down Expand Up @@ -40,4 +40,4 @@ def download_xlsx(self, obj):
return '<a href="%s">Download</a>' % reverse('report_builder.views.download_xlsx', args=[obj.id])
download_xlsx.allow_tags = True

admin.site.register(Report, ReportAdmin)
admin.site.register(Report, ReportAdmin)

0 comments on commit f68b9c4

Please sign in to comment.