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
8b5192d6
Commit
8b5192d6
authored
Oct 03, 2019
by
John Red Medrano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing listing
parent
14d546d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
app/applicationlayer/cms/master/template_list/views.py
app/applicationlayer/cms/master/template_list/views.py
+5
-7
No files found.
app/applicationlayer/cms/master/template_list/views.py
View file @
8b5192d6
...
...
@@ -27,18 +27,16 @@ class ChangeRequestTemplateHeaderMaster(viewsets.ModelViewSet):
else
:
queryset
=
ChangeRequestTemplateHeader
.
objects
.
filter
(
created_by
_department
=
department
requested_to
_department
=
department
)
excluded
=
AllowedCompany
.
objects
.
filter
(
Q
(
group_pivots
=
department
)
&
included
=
AllowedCompany
.
objects
.
filter
(
Q
(
id_number
=
request
.
user
.
code
)
&
Q
(
create_change_request
=
Fals
e
)
Q
(
create_change_request
=
Tru
e
)
)
.
values
(
'group_pivots'
)
queryset
=
queryset
.
exclude
(
requested_to_department__in
=
excluded
queryset
=
queryset
.
filter
(
requested_to_department__in
=
included
)
.
order_by
(
'requested_to_template_name'
)
page
=
self
.
paginate_queryset
(
queryset
)
...
...
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