diff options
author | Joar Wandborg <git@wandborg.com> | 2011-08-22 18:06:28 +0200 |
---|---|---|
committer | Joar Wandborg <git@wandborg.com> | 2011-08-22 18:06:28 +0200 |
commit | 3a8c3a38559f2f81d6155c2349fcddc5ecd6ef28 (patch) | |
tree | 6c50d10b4b1af8ce9f0e2aca6e93925518f7fb8f /mediagoblin/edit/forms.py | |
parent | 2c4374938f05782cd8aceb789098f787d04adc51 (diff) | |
download | mediagoblin-3a8c3a38559f2f81d6155c2349fcddc5ecd6ef28.tar.lz mediagoblin-3a8c3a38559f2f81d6155c2349fcddc5ecd6ef28.tar.xz mediagoblin-3a8c3a38559f2f81d6155c2349fcddc5ecd6ef28.zip |
Feature #482 - Media attachments -
* Moved attachment uploading to separate view
* Support for multiple attachments!
Diffstat (limited to 'mediagoblin/edit/forms.py')
-rw-r--r-- | mediagoblin/edit/forms.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mediagoblin/edit/forms.py b/mediagoblin/edit/forms.py index 37e2349c..3969e509 100644 --- a/mediagoblin/edit/forms.py +++ b/mediagoblin/edit/forms.py @@ -30,10 +30,6 @@ class EditForm(wtforms.Form): tags = wtforms.TextField( 'Tags', [tag_length_validator]) - attachment_name = wtforms.TextField( - 'Attachment title') - attachment_delete = wtforms.BooleanField( - 'Delete attachment') class EditProfileForm(wtforms.Form): bio = wtforms.TextAreaField('Bio', @@ -42,3 +38,9 @@ class EditProfileForm(wtforms.Form): 'Website', [wtforms.validators.Optional(), wtforms.validators.URL(message='Improperly formed URL')]) + +class EditAttachmentsForm(wtforms.Form): + attachment_name = wtforms.TextField( + 'Title') + attachment_file = wtforms.FileField( + 'File') |