move fill_changes_cache in changeset to force include_deleted_created
@@ -158,6 +158,8 @@ def changeset_detail(request, pk):
'obj_title': changeset.title,
})
+ changeset.fill_changes_cache(include_deleted_created=True)
+
ctx = {
'changeset': changeset,
'can_edit': can_edit,
@@ -176,8 +178,6 @@ def changeset_detail(request, pk):
ctx['changed_objects'] = changed_objects_data
return render(request, 'editor/changeset.html', ctx)
- changeset.fill_changes_cache(include_deleted_created=True)
-
objects = changeset.get_objects()
changed_objects_data = []
