Parcourir la source

Reduce number of changelog entries to improve page loading time

Jeremy Stretch il y a 6 ans
Parent
commit
070b41e694
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      netbox/netbox/views.py

+ 1 - 1
netbox/netbox/views.py

@@ -252,7 +252,7 @@ class HomeView(View):
             'search_form': SearchForm(),
             'search_form': SearchForm(),
             'stats': stats,
             'stats': stats,
             'report_results': ReportResult.objects.order_by('-created')[:10],
             'report_results': ReportResult.objects.order_by('-created')[:10],
-            'changelog': ObjectChange.objects.prefetch_related('user', 'changed_object_type')[:50]
+            'changelog': ObjectChange.objects.prefetch_related('user', 'changed_object_type')[:15]
         })
         })