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
a895e80b
Commit
a895e80b
authored
Nov 25, 2019
by
John Red Medrano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change status code return on file format download etl
parent
43fe7931
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
app/applicationlayer/management/batchupload/views.py
app/applicationlayer/management/batchupload/views.py
+2
-2
app/entities/models.py
app/entities/models.py
+0
-1
No files found.
app/applicationlayer/management/batchupload/views.py
View file @
a895e80b
...
@@ -198,7 +198,7 @@ class BatchUploadViewSet(viewsets.ModelViewSet):
...
@@ -198,7 +198,7 @@ class BatchUploadViewSet(viewsets.ModelViewSet):
)
)
return
Response
(
return
Response
(
{
"message"
:
message
},
{
"message"
:
message
},
status
=
status
.
HTTP_
400_BAD_REQUEST
status
=
status
.
HTTP_
200_OK
)
)
@
transaction
.
atomic
@
transaction
.
atomic
...
@@ -264,7 +264,7 @@ class BatchUploadViewSet(viewsets.ModelViewSet):
...
@@ -264,7 +264,7 @@ class BatchUploadViewSet(viewsets.ModelViewSet):
)
)
default_app
=
Application
.
objects
.
filter
(
default_app
=
Application
.
objects
.
filter
(
excel_code
=
keys
[
'
d
efault_app'
]
excel_code
=
keys
[
'
D
efault_app'
]
)
.
first
()
)
.
first
()
dept_code
=
Department
.
objects
.
get
(
dept_code
=
Department
.
objects
.
get
(
...
...
app/entities/models.py
View file @
a895e80b
...
@@ -130,7 +130,6 @@ class Company(AuditClass):
...
@@ -130,7 +130,6 @@ class Company(AuditClass):
def
save
(
self
,
*
args
,
**
kwargs
):
def
save
(
self
,
*
args
,
**
kwargs
):
super
(
Company
,
self
)
.
save
(
*
args
,
**
kwargs
)
super
(
Company
,
self
)
.
save
(
*
args
,
**
kwargs
)
if
self
.
code
==
'com'
:
if
self
.
code
==
'com'
:
print
(
self
.
code
)
code
=
enums
.
GenerateCode
.
APP
.
value
code
=
enums
.
GenerateCode
.
APP
.
value
code
=
number_generator
(
enums
.
GenerateCode
.
COMPANY
.
value
,
self
.
id
)
code
=
number_generator
(
enums
.
GenerateCode
.
COMPANY
.
value
,
self
.
id
)
Company
.
objects
.
filter
(
id
=
self
.
id
)
.
update
(
code
=
code
)
Company
.
objects
.
filter
(
id
=
self
.
id
)
.
update
(
code
=
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