-{% extends "osqaadmin/base.html" %}\r
-\r
-{% load i18n %}\r
-{% load user_tags %}\r
-\r
-{% block subtitle %}\r
- {% trans "SX Importer" %}\r
-{% endblock %}\r
-{% block description %}\r
- {% trans "Welcome to Stack Exchange dump importer." %}\r
-{% endblock %}\r
-\r
-{% block admincontent %}\r
- <form method="post" action="" enctype="multipart/form-data">\r
- <input type="file" name="dump" /><br>\r
- {% trans "Your user id in stack exchange" %}\r
- <input type="test" name="owneruid" size="3" value="2" /><br />\r
-\r
- <input type="checkbox" checked="checked" name="mergesimilar" />\r
- {% trans "Merge users with same user name and email" %}<br />\r
-\r
- <input type="submit" value="submit" />\r
- </form>\r
- {% for n in names %}\r
- <p>{{ n }}</p>\r
- {% endfor %}\r
+{% extends "osqaadmin/base.html" %}
+
+{% load i18n %}
+{% load user_tags %}
+
+{% block subtitle %}
+ {% trans "SX Importer" %}
+{% endblock %}
+{% block description %}
+ {% trans "Welcome to Stack Exchange dump importer." %}
+{% endblock %}
+
+{% block admincontent %}
+ <form method="post" action="" enctype="multipart/form-data">
+ {% csrf_token %}
+ <input type="file" name="dump" /><br>
+ {% trans "Your user id in stack exchange" %}
+ <input type="test" name="owneruid" size="3" value="2" /><br />
+
+ <input type="checkbox" checked="checked" name="mergesimilar" />
+ {% trans "Merge users with same user name and email" %}<br />
+
+ <input type="submit" value="submit" />
+ </form>
+ {% for n in names %}
+ <p>{{ n }}</p>
+ {% endfor %}
{% endblock %}
\ No newline at end of file