Commit 0bb3c9bd authored by Fernando Ribeiro's avatar Fernando Ribeiro
Browse files

Refat: Change Meta position in Model

parent b7b69550
......@@ -739,6 +739,10 @@ class Lesson(PositionedModel):
)
collection_name = 'course'
class Meta:
verbose_name = _('Lesson')
verbose_name_plural = _('Lessons')
ordering = ['position']
@property
def is_course_last_lesson(self):
......@@ -746,10 +750,6 @@ class Lesson(PositionedModel):
return len(lessons) > 0 and self == lessons[-1]
class Meta:
verbose_name = _('Lesson')
verbose_name_plural = _('Lessons')
ordering = ['position']
def __str__(self):
return self.name
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment