mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-02-09 08:19:41 +00:00
Versioning module now does magic
Automatic creation of views/urls for anything registered with reversion, with a small amount of hackage to preserve legacy stuff. (and the DAMNED asset IDs!) I would never get distracted...
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
{% load to_class_name from filters %}
|
||||
{% load paginator from filters %}
|
||||
|
||||
{% block title %}{{object|to_class_name}} {{ id }} - Revision History{% endblock %}
|
||||
{% block title %}{{object|to_class_name}} {{ object.display_id|default:object.pk }} - Revision History{% endblock %}
|
||||
|
||||
{% block js %}
|
||||
{% include 'partials/version_scripts.html' %}
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
{% block content %}
|
||||
<div class="col-sm-12">
|
||||
<h3><a href="{{ object.get_absolute_url }}">{{object|to_class_name}} {{ id }}</a> - Revision History</h3>
|
||||
<h3><a href="{{ object.get_absolute_url }}">{{object|to_class_name}} {{ object.display_id|default:object.pk }}</a> - Revision History</h3>
|
||||
{% include 'partials/version_history_table.html' %}
|
||||
<div>{% paginator %}</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user