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

fixing issue on recent companies key at dashboard endpoint

parent 480de694
......@@ -99,7 +99,7 @@ class RMSDashBoardViewSet(APIView):
companies = Company.objects.all().order_by('-created')[0:10]
for data in companies:
recently_company['name'] = data.name
recently_company['company_name'] = data.name
recently_company['no_department'] = data.companies.exclude(id=1).count()
recently_company['no_users'] = User.objects.filter(
......@@ -118,7 +118,7 @@ class RMSDashBoardViewSet(APIView):
user_count = User.objects.all().count()
for data in companies:
recently_company['name'] = data.name
recently_company['company_name'] = data.name
recently_company['no_department'] = data.companies.count()
recently_company['no_users'] = User.objects.filter(
......
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