Add support for importing bootstrap setups from file

This commit is contained in:
Roberto Rosario
2012-10-14 07:00:27 -04:00
parent 37372ba554
commit 6ea76ef84f
10 changed files with 119 additions and 25 deletions

View File

@@ -43,3 +43,9 @@ class BootstrapSetupForm_dump(BootstrapSetupForm):
class Meta(BootstrapSetupForm.Meta):
model = BootstrapSetup
exclude = ('fixture',)
class BootstrapUploadForm(forms.Form):
file = forms.FileField(
label=_(u'Bootstrap setup file'),
)