Skip to content

Commit

Permalink
forms.py doesn't make it any simpler in this example
Browse files Browse the repository at this point in the history
  • Loading branch information
sigurdga committed Jun 12, 2011
1 parent 643c603 commit 204eb7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
8 changes: 0 additions & 8 deletions fileupload/forms.py

This file was deleted.

7 changes: 2 additions & 5 deletions fileupload/templates/fileupload/picture_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,10 @@
<div id="fileupload">
<form method="post" action="" enctype="multipart/form-data">
<div class="fileupload-buttonbar">
{% csrf_token %}
<label class="fileinput-button">
{% comment %}
<span>Add files...</span>
<input type="file" name="file[]" multiple>
{% endcomment %}
{% csrf_token %}
{{ form }}
<input type="file" name="file">
</label>
<button type="submit" class="start">Start upload</button>
<button type="reset" class="cancel">Cancel upload</button>
Expand Down

0 comments on commit 204eb7e

Please sign in to comment.