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
e4b4bfe4
Commit
e4b4bfe4
authored
Jun 19, 2019
by
Ristylou Dolar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added default 1 for theme field in Application
parent
6f3e895c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
api/migrations/0004_auto_20190619_0952.py
api/migrations/0004_auto_20190619_0952.py
+18
-0
api/models.py
api/models.py
+1
-1
No files found.
api/migrations/0004_auto_20190619_0952.py
0 → 100644
View file @
e4b4bfe4
# Generated by Django 2.1.5 on 2019-06-19 09:52
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'api'
,
'0003_application_code'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'application'
,
name
=
'theme'
,
field
=
models
.
IntegerField
(
default
=
1
),
),
]
api/models.py
View file @
e4b4bfe4
...
...
@@ -5,7 +5,7 @@ from django.utils import timezone
class
Application
(
models
.
Model
):
application_no
=
models
.
CharField
(
max_length
=
250
)
name
=
models
.
CharField
(
max_length
=
200
,
unique
=
True
)
theme
=
models
.
IntegerField
()
theme
=
models
.
IntegerField
(
default
=
1
)
code
=
models
.
CharField
(
max_length
=
300
)
created_at
=
models
.
DateTimeField
(
auto_now_add
=
True
)
updated_at
=
models
.
DateTimeField
(
auto_now
=
True
)
...
...
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