-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
127 additions
and
141 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
language: python | ||
install: | ||
- pip install tox | ||
- pip install tox | ||
script: | ||
- tox | ||
env: | ||
- TOXENV=django14 | ||
- TOXENV=django15 | ||
- TOXENV=django16 | ||
- TOXENV=django17 | ||
- TOXENV=django18 | ||
- TOXENV=django19 |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env python | ||
import os | ||
import sys | ||
|
||
if __name__ == "__main__": | ||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_settings") | ||
|
||
from django.core.management import execute_from_command_line | ||
|
||
execute_from_command_line(sys.argv) |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,105 +1,7 @@ | ||
{% extends "admin/base_site.html" %} | ||
{% load admin_list i18n object_tools_inclusion_tags admin_static %} | ||
{% load url from future %} | ||
{% block extrastyle %} | ||
{{ block.super }} | ||
<link rel="stylesheet" type="text/css" href="{% static "admin/css/changelists.css" %}" /> | ||
{% if cl.formset %} | ||
<link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}" /> | ||
{% endif %} | ||
{% if cl.formset or action_form %} | ||
{% url 'admin:jsi18n' as jsi18nurl %} | ||
<script type="text/javascript" src="{{ jsi18nurl|default:'../../jsi18n/' }}"></script> | ||
{% endif %} | ||
{{ media.css }} | ||
{% if not actions_on_top and not actions_on_bottom %} | ||
<style> | ||
#changelist table thead th:first-child {width: inherit} | ||
</style> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block extrahead %} | ||
{{ block.super }} | ||
{{ media.js }} | ||
{% if action_form %}{% if actions_on_top or actions_on_bottom %} | ||
<script type="text/javascript"> | ||
(function($) { | ||
$(document).ready(function($) { | ||
$("tr input.action-select").actions(); | ||
}); | ||
})(django.jQuery); | ||
</script> | ||
{% endif %}{% endif %} | ||
{% endblock %} | ||
|
||
{% block bodyclass %}change-list{% endblock %} | ||
|
||
{% if not is_popup %} | ||
{% block breadcrumbs %} | ||
<div class="breadcrumbs"> | ||
<a href="../../"> | ||
{% trans "Home" %} | ||
</a> | ||
› | ||
<a href="../"> | ||
{{ app_label|capfirst }} | ||
</a> | ||
› | ||
{{ cl.opts.verbose_name_plural|capfirst }} | ||
</div> | ||
{% endblock %} | ||
{% endif %} | ||
|
||
{% block coltype %}flex{% endblock %} | ||
|
||
{% block content %} | ||
<div id="content-main"> | ||
{% block object-tools %} | ||
{% if has_add_permission %} | ||
<ul class="object-tools"> | ||
{% block object-tools-items %} | ||
{% object_tools cl.model user %} | ||
<li> | ||
<a href="add/{% if is_popup %}?_popup=1{% endif %}" class="addlink"> | ||
{% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %} | ||
</a> | ||
</li> | ||
{% endblock %} | ||
</ul> | ||
{% endif %} | ||
{% endblock %} | ||
{% if cl.formset.errors %} | ||
<p class="errornote"> | ||
{% blocktrans count cl.formset.errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %} | ||
</p> | ||
{{ cl.formset.non_form_errors }} | ||
{% endif %} | ||
<div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist"> | ||
{% block search %}{% search_form cl %}{% endblock %} | ||
{% block date_hierarchy %}{% date_hierarchy cl %}{% endblock %} | ||
|
||
{% block filters %} | ||
{% if cl.has_filters %} | ||
<div id="changelist-filter"> | ||
<h2>{% trans 'Filter' %}</h2> | ||
{% for spec in cl.filter_specs %}{% admin_list_filter cl spec %}{% endfor %} | ||
</div> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
<form id="changelist-form" action="" method="post"{% if cl.formset.is_multipart %} enctype="multipart/form-data"{% endif %}>{% csrf_token %} | ||
{% if cl.formset %} | ||
<div>{{ cl.formset.management_form }}</div> | ||
{% endif %} | ||
{% extends "../../admin/templates/admin/change_list.html" %} | ||
{% load object_tools_inclusion_tags %} | ||
|
||
{% block result_list %} | ||
{% if action_form and actions_on_top and cl.full_result_count %}{% admin_actions %}{% endif %} | ||
{% result_list cl %} | ||
{% if action_form and actions_on_bottom and cl.full_result_count %}{% admin_actions %}{% endif %} | ||
{% endblock %} | ||
{% block pagination %}{% pagination cl %}{% endblock %} | ||
</form> | ||
</div> | ||
</div> | ||
{% block object-tools-items %} | ||
{% object_tools cl.model user %} | ||
{{ block.super }} | ||
{% endblock %} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
"""Handle future url tag deprecation so we don't leave pre Django 1.8 in either | ||
an unmaintained state or in a different branch.""" | ||
|
||
from django.template import Library | ||
|
||
try: | ||
# Pre 1.8 | ||
from django.templatetags.future import url as base_url | ||
except ImportError: | ||
from django.template.defaulttags import url as base_url | ||
|
||
|
||
register = Library() | ||
|
||
|
||
@register.tag | ||
def url(parser, token): | ||
return base_url(parser, token) |
Oops, something went wrong.