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
f5ec1b2e
Commit
f5ec1b2e
authored
Jul 19, 2021
by
Matheus Miranda
Browse files
Set is_public field always to True
parent
6116c5b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
courses/migrations/0029_auto_20210719_2107.py
courses/migrations/0029_auto_20210719_2107.py
+18
-0
courses/models.py
courses/models.py
+1
-1
No files found.
courses/migrations/0029_auto_20210719_2107.py
0 → 100644
View file @
f5ec1b2e
# Generated by Django 2.2.24 on 2021-07-20 00:07
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'courses'
,
'0028_auto_20210629_1048'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'course'
,
name
=
'is_public'
,
field
=
models
.
BooleanField
(
default
=
True
,
verbose_name
=
'Public'
),
),
]
courses/models.py
View file @
f5ec1b2e
...
...
@@ -182,7 +182,7 @@ class Course(models.Model):
is_public
=
models
.
BooleanField
(
_
(
'Public'
),
default
=
Fals
e
,
default
=
Tru
e
,
)
forum
=
models
.
OneToOneField
(
...
...
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