Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
R
red-ci-cd
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
red-group-test
red-ci-cd
Commits
c49b2356
Commit
c49b2356
authored
Jan 16, 2020
by
John Red Medrano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed issue on rms dashboard max_display, user and department count
parent
2eb8ab09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app/applicationlayer/master/dashboard/views.py
app/applicationlayer/master/dashboard/views.py
+4
-4
No files found.
app/applicationlayer/master/dashboard/views.py
View file @
c49b2356
...
...
@@ -32,12 +32,12 @@ class RMSDashBoardViewSet(APIView):
recently_company
=
{}
recently_users
=
User
.
objects
.
all
(
)
.
values
(
recently_users
=
User
.
objects
.
exclude
(
id
=
1
)
.
values
(
'name'
,
'department__company__name'
,
'department__name'
,
'date_joined'
)
)
[:
10
]
if
user_type
==
enums_department
:
...
...
@@ -88,9 +88,9 @@ class RMSDashBoardViewSet(APIView):
)
else
:
company_count
=
Company
.
objects
.
all
(
)
.
count
()
company_count
=
Company
.
objects
.
exclude
(
id
=
1
)
.
count
()
companies
=
Company
.
objects
.
all
()[
0
:
10
]
department_count
=
Department
.
objects
.
all
(
)
.
count
()
department_count
=
Department
.
objects
.
exclude
(
id
=
1
)
.
count
()
user_count
=
User
.
objects
.
all
()
.
count
()
for
data
in
companies
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment