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:
@@ -1,7 +1,7 @@
|
||||
import frappe
|
||||
from ...lms.doctype.lms_sketch.lms_sketch import get_recent_sketches
|
||||
from community.lms.models import Sketch
|
||||
|
||||
def get_context(context):
|
||||
context.no_cache = 1
|
||||
context.sketches = get_recent_sketches()
|
||||
context.sketches = Sketch.get_recent_sketches()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user