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
df1d5117
Commit
df1d5117
authored
3 years ago
by
Matheus Miranda
Browse files
Options
Download
Email Patches
Plain Diff
Take draft units in count on progress
parent
8aec71e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
courses/models.py
courses/models.py
+1
-1
No files found.
courses/models.py
View file @
df1d5117
...
...
@@ -204,7 +204,7 @@ class Course(models.Model):
@
property
def
unit_set
(
self
):
return
Unit
.
objects
.
filter
(
lesson__in
=
self
.
lessons
.
all
()
,
status
=
'published'
).
order_by
(
'lesson'
)
return
Unit
.
objects
.
filter
(
lesson__in
=
self
.
lessons
.
all
()).
order_by
(
'lesson'
)
@
property
def
public_lessons
(
self
):
...
...
This diff is collapsed.
Click to expand it.
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