Commit e03eba47 authored by John Red Medrano's avatar John Red Medrano

fixing recent_companies

parent 91fc71ca
...@@ -113,7 +113,7 @@ class RMSDashBoardViewSet(APIView): ...@@ -113,7 +113,7 @@ class RMSDashBoardViewSet(APIView):
else: else:
company_count = Company.objects.count() company_count = Company.objects.count()
companies = Company.objects.all()[0:10] companies = Company.objects.all().order_by('-created')[0:10]
department_count = Department.objects.count() department_count = Department.objects.count()
user_count = User.objects.all().count() user_count = User.objects.all().count()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment