Adding comment about div that can't be removed.

Also fixing Meta class being defined twice in one model
This commit is contained in:
Dillon Dumesnil
2020-03-18 11:29:10 -07:00
parent 98e5b9d4a3
commit b9e6fdfdef
2 changed files with 3 additions and 3 deletions

View File

@@ -46,9 +46,6 @@ class CourseMode(models.Model):
.. no_pii:
"""
class Meta(object):
app_label = "course_modes"
course = models.ForeignKey(
CourseOverview,
db_constraint=False,
@@ -199,6 +196,7 @@ class CourseMode(models.Model):
CACHE_NAMESPACE = u"course_modes.CourseMode.cache."
class Meta(object):
app_label = "course_modes"
unique_together = ('course', 'mode_slug', 'currency')
def clean(self):