You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working with reversion and I open up a older version, then try to click on the "History" button on the right I get
invalid literal for int() with base 10: '1/history/3'
since django expects the url to be '/history/' but it's '/history/37/history/' (37 is the id of the history entry I opened up)
The issue is that the history link is hardcorded in a relative way (which works if the history is accessed from the entity page but not from the "older version" page)
Long story short I assume that instead of using
<li><a href="history/" class="historylink">{% trans "History" %}</a></li>
it should be
<li><a href="{% add_preserved_filters history_url %}" class="historylink">{% trans "History" %}</a></li>
The files that need this change are:
lib/python2.7/site-packages/django_admin_bootstrapped/bootstrap3/templates/admin/change_form.html: <li><a href="history/" class="historylink">{% trans "History" %}</a></li>
lib/python2.7/site-packages/django_admin_bootstrapped/bootstrap3/templates/admin/cms/page/change_form.html: <a href="history/" class="btn btn-inverse historylink">{% trans "History" %}</a>
lib/python2.7/site-packages/django_admin_bootstrapped/bootstrap3/templates/admin/filer/folder/change_form.html: <li><a href="history/" class="historylink">{% trans "History" %}</a></li>
lib/python2.7/site-packages/django_admin_bootstrapped/bootstrap3/templates/admin/filer/image/change_form.html: <li><a href="history/" class="btn historylink">{% trans "History" %}</a></li>
lib/python2.7/site-packages/django_admin_bootstrapped/templates/admin/change_form.html: <a href="history/" class="btn btn-inverse historylink">{% trans "History" %}</a>
lib/python2.7/site-packages/django_admin_bootstrapped/templates/admin/cms/page/change_form.html: <a href="history/" class="btn btn-inverse historylink">{% trans "History" %}</a>
lib/python2.7/site-packages/django_admin_bootstrapped/templates/admin/filer/folder/change_form.html: <li><a href="history/" class="historylink">{% trans "History" %}</a></li>
lib/python2.7/site-packages/django_admin_bootstrapped/templates/admin/filer/image/change_form.html: <li><a href="history/" class="btn historylink">{% trans "History" %}</a></li>
I hope this report helps.
The text was updated successfully, but these errors were encountered:
When working with reversion and I open up a older version, then try to click on the "History" button on the right I get
since django expects the url to be '/history/' but it's '/history/37/history/' (37 is the id of the history entry I opened up)
The issue is that the history link is hardcorded in a relative way (which works if the history is accessed from the entity page but not from the "older version" page)
Long story short I assume that instead of using
it should be
The files that need this change are:
I hope this report helps.
The text was updated successfully, but these errors were encountered: