- 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
8 lines
159 B
Python
8 lines
159 B
Python
import frappe
|
|
from community.lms.models import Sketch
|
|
|
|
def get_context(context):
|
|
context.no_cache = 1
|
|
context.sketches = Sketch.get_recent_sketches()
|
|
|