Skip to content

Commit c91aeb3

Browse files
committed
remove unused code
1 parent 7911103 commit c91aeb3

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

fileupload/templates/fileupload/picture_basic_form.html

-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ <h2 class="lead">Basic version</h2>
5151
Works with any server-side platform (PHP, Python, Ruby on Rails, Java, Node.js, Go etc.) that supports standard HTML form file uploads.</p>
5252
</blockquote>
5353
<br>
54-
{% csrf_token %}
5554
<!-- The fileinput-button span is used to style the file input field as button -->
5655
<span class="btn btn-success fileinput-button">
5756
<i class="glyphicon glyphicon-plus"></i>
@@ -90,7 +89,6 @@ <h3 class="panel-title">Demo Notes</h3>
9089
<script src="{{ STATIC_URL }}js/jquery.fileupload.js"></script>
9190
<!-- Bootstrap JS is not required, but included for the responsive demo navigation -->
9291
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
93-
<script src="{{ STATIC_URL }}js/csrf.js"></script>
9492
<script src="{{ STATIC_URL }}js/jquery.cookie.js"></script>
9593
<script>
9694
/*jslint unparam: true */

fileupload/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def form_valid(self, form):
4242
return response
4343

4444
class BasicVersionCreateView(PictureCreateView):
45-
model = Picture
45+
# model = Picture
4646
template_name_suffix = '_basic_form'
4747

4848
class PictureDeleteView(DeleteView):

0 commit comments

Comments
 (0)