Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #9 from edx-solutions/aamishbaloch/YONK-863
Browse files Browse the repository at this point in the history
YONK-863: languages_list property issue fixed with no intial langauge
  • Loading branch information
aamishbaloch committed Jan 22, 2018
2 parents 0e33a3c + 34e7991 commit cc5b911
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions course_metadata/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ class CourseSetting(TimeStampedModel):

@property
def languages_list(self):
data = ast.literal_eval(self.languages)
return data
if not self.languages:
return []
return ast.literal_eval(self.languages)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name='course-edx-platform-extensions',
version='1.0.6',
version='1.0.7',
description='Course metadata management extension for edX platform',
long_description=open('README.rst').read(),
author='edX',
Expand Down

0 comments on commit cc5b911

Please sign in to comment.