weird header stuff

This commit is contained in:
pacnpal
2024-11-03 22:03:56 +00:00
parent ed585e6a56
commit 07526dcba8
34 changed files with 5047 additions and 185 deletions

View File

@@ -202,8 +202,8 @@ class HistoryMixin:
context = super().get_context_data(**kwargs)
obj = self.get_object()
# Get historical records
context['history'] = obj.history.all().select_related('history_user')
# Get historical records ordered by date
context['history'] = obj.history.all().select_related('history_user').order_by('-history_date')
# Get related edit submissions
content_type = ContentType.objects.get_for_model(obj)