Merge pull request #9999 from edx/bbeggs/TNL-3452-master

Fixed select_related fields for course embargos and the mobile user api. TNL-3452
This commit is contained in:
Brian Beggs
2015-10-02 13:55:30 -04:00
2 changed files with 2 additions and 2 deletions

View File

@@ -221,7 +221,7 @@ class RestrictedCourse(models.Model):
"""
country_rules_for_course = (
CountryAccessRule.objects
).select_related('restricted_country').filter(restricted_course=self)
).select_related('country').filter(restricted_course=self)
return {
'enroll_msg': self.enroll_msg_key,