Skip to content

Commit

Permalink
[admin] Minor improvements to #84
Browse files Browse the repository at this point in the history
Related to #84
Related to #85
  • Loading branch information
nemesifier committed Apr 7, 2020
1 parent 27227b5 commit 8c79c3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions django_x509/base/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ def get_context(self, data, ca_count=0, cert_count=0):
context = dict()
if ca_count:
context.update({
'title': _('renew selected CAs'),
'title': _('Renew selected CAs'),
'ca_count': ca_count,
'cert_count': cert_count,
'cancel_url': 'django_x509_ca_changelist',
'action': 'renew_ca'
})
else:
context.update({
'title': _('renew selected certs'),
'title': _('Renew selected certs'),
'cert_count': cert_count,
'cancel_url': 'django_x509_cert_changelist',
'action': 'renew_cert'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
{% block content %}
<form method="post">
{% csrf_token %}
<h1>{% trans 'Are You Sure?' %}</h1>
{% if ca_count %}
{% blocktrans %}
<p>Are you sure you want to renew the selected CAs and their related certificates?</p>
Expand Down

0 comments on commit 8c79c3e

Please sign in to comment.