refactor: sketches page

- Added new widget SketchTeaser
- Moved get_recent_sketches as static method in LMSSketch
- Added `models.py` to make it easy to import Course and Sketch class
- Updated the sketches template to use the SketchTeaser widget
This commit is contained in:
Anand Chitipothu
2021-04-29 10:44:05 +05:30
parent e78c6020e7
commit 20ccc09869
6 changed files with 70 additions and 68 deletions

5
community/lms/models.py Normal file
View File

@@ -0,0 +1,5 @@
"""Handy module to make access to all doctypes from a single place.
"""
from .doctype.lms_course.lms_course import LMSCourse as Course
from .doctype.lms_sketch.lms_sketch import LMSSketch as Sketch