|
@@ -228,6 +228,13 @@ class ObjectChangeLogView(View):
|
|
|
orderable=False
|
|
orderable=False
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
|
|
+ # Apply the request context
|
|
|
|
|
+ paginate = {
|
|
|
|
|
+ 'paginator_class': EnhancedPaginator,
|
|
|
|
|
+ 'per_page': request.GET.get('per_page', settings.PAGINATE_COUNT)
|
|
|
|
|
+ }
|
|
|
|
|
+ RequestConfig(request, paginate).configure(objectchanges_table)
|
|
|
|
|
+
|
|
|
# Check whether a header template exists for this model
|
|
# Check whether a header template exists for this model
|
|
|
base_template = '{}/{}.html'.format(model._meta.app_label, model._meta.model_name)
|
|
base_template = '{}/{}.html'.format(model._meta.app_label, model._meta.model_name)
|
|
|
try:
|
|
try:
|
|
@@ -239,7 +246,7 @@ class ObjectChangeLogView(View):
|
|
|
|
|
|
|
|
return render(request, 'extras/object_changelog.html', {
|
|
return render(request, 'extras/object_changelog.html', {
|
|
|
object_var: obj,
|
|
object_var: obj,
|
|
|
- 'objectchanges_table': objectchanges_table,
|
|
|
|
|
|
|
+ 'table': objectchanges_table,
|
|
|
'base_template': base_template,
|
|
'base_template': base_template,
|
|
|
'active_tab': 'changelog',
|
|
'active_tab': 'changelog',
|
|
|
})
|
|
})
|