Created
February 14, 2012 05:00
-
-
Save hgdeoro/1823666 to your computer and use it in GitHub Desktop.
Snippet para agregar un textarea para importar objetos con Django
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "admin/change_list.html" %} | |
{% load adminmedia admin_list i18n %} | |
{% load url from future %} | |
{% block content %} | |
{{ block.super }} | |
<div> | |
<form action="/importar/" method="post"> | |
{% csrf_token %} | |
<h1 style="margin-top: 1em;">Importar</h1> | |
<textarea name="import_json" rows="10" cols="100"></textarea> <br> | |
<input type="submit" value="Importar"> | |
</form> | |
</div> | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment