Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
edx
edx-platform
Commits
a3d52557
Commit
a3d52557
authored
Jun 30, 2014
by
marcore
Committed by
Marco Re
Aug 04, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix filter with new opaque key, allowing user to set COURSE_LISTING as old way path
parent
035e495c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lms/djangoapps/branding/__init__.py
+2
-2
No files found.
lms/djangoapps/branding/__init__.py
View file @
a3d52557
...
...
@@ -2,9 +2,9 @@ from xmodule.modulestore.django import modulestore
from
xmodule.course_module
import
CourseDescriptor
from
django.conf
import
settings
from
opaque_keys.edx.locations
import
SlashSeparatedCourseKey
from
microsite_configuration
import
microsite
def
get_visible_courses
():
"""
Return the set of CourseDescriptors that should be visible in this branded instance
...
...
@@ -22,7 +22,7 @@ def get_visible_courses():
# this is legacy format which is outside of the microsite feature -- also handle dev case, which should not filter
if
hasattr
(
settings
,
'COURSE_LISTINGS'
)
and
subdomain
in
settings
.
COURSE_LISTINGS
and
not
settings
.
DEBUG
:
filtered_visible_ids
=
frozenset
(
settings
.
COURSE_LISTINGS
[
subdomain
])
filtered_visible_ids
=
frozenset
(
[
SlashSeparatedCourseKey
.
from_deprecated_string
(
c
)
for
c
in
settings
.
COURSE_LISTINGS
[
subdomain
]
])
filtered_by_org
=
microsite
.
get_value
(
'course_org_filter'
)
...
...
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