Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

Commit

Permalink
Merge branch 'release/1.9'
Browse files Browse the repository at this point in the history
* release/1.9:
  upates CHANGES/tox.ini
  bump version
  removes django 1.8 from tox
  Fix #14
  Fixed broken download url
  Switched broken pypip.in badges to shields.io
  updates Makefile
  • Loading branch information
saxix committed Apr 18, 2018
2 parents 53d1c13 + 7964707 commit 7c98041
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 33 deletions.
6 changes: 6 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Release 1.9
-----------
* Fixed the link css classes (issue #15)
* Fixed broken download url (issue #12)
* Fixed broken pypip.in badges (issue #11)

Release 1.8
-----------
* standard "post action redirect" now preserve existing filters
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ develop:

clean:
# cleaning
@rm -fr dist '~build'
@rm -fr dist '~build' .pytest_cache .coverage src/admin_extra_urls.egg-info
@find . -name __pycache__ -o -name .eggs | xargs rm -rf
@find . -name "*.py?" -o -name ".DS_Store" -o -name "*.orig" -o -name "*.min.min.js" -o -name "*.min.min.css" -prune | xargs rm -rf

Expand Down
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Links
+--------------------+---------------+---------------------------------------------+
| Issue tracker: |https://github.com/saxix/django-admin-extra-urls/issues?sort |
+--------------------+---------------+---------------------------------------------+
| Download: |http://pypi.python.org/pypi/django-admin-extra-urls/ |
| Download: |http://pypi.python.org/pypi/admin-extra-urls/ |
+--------------------+---------------+---------------------------------------------+


Expand All @@ -127,15 +127,15 @@ Links
:target: https://codecov.io/gh/saxix/django-admin-extra-urls


.. |python| image:: https://pypip.in/py_versions/admin-extra-urls/badge.svg
.. |python| image:: https://img.shields.io/pypi/pyversions/admin-extra-urls.svg
:target: https://pypi.python.org/pypi/admin-extra-urls/
:alt: Supported Python versions

.. |pypi| image:: https://pypip.in/version/admin-extra-urls/badge.svg?text=version
.. |pypi| image:: https://img.shields.io/pypi/v/admin-extra-urls.svg?label=version
:target: https://pypi.python.org/pypi/admin-extra-urls/
:alt: Latest Version

.. |license| image:: https://pypip.in/license/admin-extra-urls/badge.svg
.. |license| image:: https://img.shields.io/pypi/l/admin-extra-urls.svg
:target: https://pypi.python.org/pypi/admin-extra-urls/
:alt: License

Expand Down
2 changes: 1 addition & 1 deletion src/admin_extra_urls/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
NAME = "admin-extra-urls"
VERSION = __version__ = "1.8.0"
VERSION = __version__ = "1.9.0"
__author__ = 'sax'
6 changes: 6 additions & 0 deletions src/admin_extra_urls/site.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# -*- coding: utf-8 -*-



class AdminSiteMixin(object):
pass
12 changes: 3 additions & 9 deletions src/admin_extra_urls/templates/admin_extra_urls/change_form.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
{% extends "admin/change_form.html" %}
{% load i18n admin_static admin_list admin_urls %}

{% block object-tools %}

<ul class="object-tools">
{% block object-tools-items %}
{{ block.super }}
{% include "admin_extra_urls/includes/change_form_buttons.html" %}
{% endblock %}
</ul>

{% block object-tools-items %}
{{ block.super }}
{% include "admin_extra_urls/includes/change_form_buttons.html" %}
{% endblock %}
18 changes: 3 additions & 15 deletions src/admin_extra_urls/templates/admin_extra_urls/change_list.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
{% extends "admin/change_list.html" %}
{% load extra_urls i18n admin_static admin_list admin_urls %}

{% block object-tools %}

<div class="object-tools">
{% block object-tools-items %}
{% if has_add_permission %}
<li> <a href="{% url cl.opts|admin_urlname:'add' %}{% if is_popup %}?_popup=1{% endif %}"
class="btn btn-success">
<i class="icon-plus-sign icon-white"></i>&nbsp;
{% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %}
</a></li>
{% endif %}
{% include "admin_extra_urls/includes/change_list_buttons.html" %}
{% endblock %}
</div>

{% block object-tools-items %}
{{ block.super }}
{% include "admin_extra_urls/includes/change_list_buttons.html" %}
{% endblock %}
5 changes: 2 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,13 @@ markers =
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH PYTHONDONTWRITEBYTECODE DISPLAY
setenv =
PYTHONDONTWRITEBYTECODE=true

;extras=test
deps=
-rsrc/requirements/testing.pip
d18: django>=1.8,<1.9
d19: django>=1.9,<1.10
d110: django>=1.10,<1.11
d111: django>=1.11,<1.12
d20: django>=2.0dev,<2.1
d20: django>=2.0,<2.1

dev: git+git://github.com/django/django.git#egg=django

Expand Down

0 comments on commit 7c98041

Please sign in to comment.