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
f3294a4e
Commit
f3294a4e
authored
Nov 12, 2019
by
Gladys Forte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new migrations
parent
fc71568c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletion
+25
-1
app/applicationlayer/management/delegation/views.py
app/applicationlayer/management/delegation/views.py
+1
-1
app/entities/migrations/0038_auto_20191112_1457.py
app/entities/migrations/0038_auto_20191112_1457.py
+24
-0
No files found.
app/applicationlayer/management/delegation/views.py
View file @
f3294a4e
...
...
@@ -133,7 +133,7 @@ class DelegationViewSet(viewsets.ModelViewSet):
old_instance
=
model_to_dict
(
instance
)
# restriction
# restriction
s
if
not
(
old_instance
[
'name'
]
.
lower
()
==
'head of department'
or
old_instance
[
'name'
]
.
lower
()
==
'sd/od'
or
old_instance
[
'name'
]
.
lower
()
==
'change control board'
or
...
...
app/entities/migrations/0038_auto_20191112_1457.py
0 → 100644
View file @
f3294a4e
# Generated by Django 2.2 on 2019-11-12 14:57
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'entities'
,
'0037_auto_20191112_1403'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'changerequestformapprovers'
,
name
=
'delegation'
,
field
=
models
.
ForeignKey
(
blank
=
True
,
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'entities.Delegation'
,
to_field
=
'code'
),
),
migrations
.
AlterField
(
model_name
=
'changerequesttemplateapprovers'
,
name
=
'delegation'
,
field
=
models
.
ForeignKey
(
blank
=
True
,
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'entities.Delegation'
,
to_field
=
'code'
),
),
]
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