Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete link is "None" #530

Closed
softcup opened this issue Aug 15, 2016 · 0 comments
Closed

delete link is "None" #530

softcup opened this issue Aug 15, 2016 · 0 comments

Comments

@softcup
Copy link

softcup commented Aug 15, 2016

If this is a bug please specify versions you're using first.

Django version: 1.8.14
Django Suit version: 0.2.20
Python version: 2.7.10

Issue:
in /django_suit-0.2.20-py2.7.egg/suit/templates/admin/submit_line.html

{% if django_version < 1.9 %}
  <a href="delete/" class="text-error deletelink">{% trans "Delete" %}</a>
{% else %}
    {% url opts|admin_urlname:'delete' original.pk|admin_urlquote as delete_url %}
    <a href="{% add_preserved_filters delete_url %}" class="text-error deletelink">{% trans "Delete" %}</a>
{% endif %}

"if django_version < 1.9" was always False.
django_version = (1, 8)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant