Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
MOOC packages by hacklab
django-courses
Commits
8aec71e7
Commit
8aec71e7
authored
Nov 25, 2021
by
Matheus Miranda
Browse files
Add release date and status to unit
parent
dee28fde
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
courses/migrations/0036_auto_20211125_1203.py
courses/migrations/0036_auto_20211125_1203.py
+24
-0
No files found.
courses/migrations/0036_auto_20211125_1203.py
0 → 100644
View file @
8aec71e7
# Generated by Django 2.2.24 on 2021-11-25 15:03
from
django.db
import
migrations
,
models
import
django.utils.timezone
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'courses'
,
'0035_auto_20211119_1729'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'unit'
,
name
=
'release_date'
,
field
=
models
.
DateTimeField
(
default
=
django
.
utils
.
timezone
.
now
,
verbose_name
=
'Date'
),
),
migrations
.
AddField
(
model_name
=
'unit'
,
name
=
'status'
,
field
=
models
.
CharField
(
choices
=
[(
'draft'
,
'Draft'
),
(
'published'
,
'Published'
)],
default
=
'draft'
,
max_length
=
64
,
verbose_name
=
'Status'
),
),
]
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