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
1d4ffc65
Commit
1d4ffc65
authored
Aug 02, 2021
by
Matheus Miranda
Browse files
Set allow certification by default in classes
parent
620c8e37
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
courses/classes/models.py
courses/classes/models.py
+1
-1
courses/migrations/0032_auto_20210802_1418.py
courses/migrations/0032_auto_20210802_1418.py
+18
-0
No files found.
courses/classes/models.py
View file @
1d4ffc65
...
...
@@ -26,7 +26,7 @@ class Class(models.Model):
)
user_can_certificate
=
models
.
BooleanField
(
_
(
'Certification Allowed'
),
default
=
Fals
e
,
default
=
Tru
e
,
)
user_can_certificate_even_without_progress
=
models
.
BooleanField
(
_
(
'Certification Allowed Even Without Progress'
),
...
...
courses/migrations/0032_auto_20210802_1418.py
0 → 100644
View file @
1d4ffc65
# Generated by Django 2.2.24 on 2021-08-02 17:18
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'courses'
,
'0031_auto_20210730_1115'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'class'
,
name
=
'user_can_certificate'
,
field
=
models
.
BooleanField
(
default
=
True
,
verbose_name
=
'Certification Allowed'
),
),
]
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