Source

HH-Courses / forms.py

Full commit
from django import forms
from django.db.models import get_model
from widgets import WYMEditor


class LessonsAdminModelForm(forms.ModelForm):
    summary = forms.CharField(widget=WYMEditor())
    content = forms.CharField(widget=WYMEditor())

    class Meta:
        model = get_model('courses', 'lessons')

class CoursesAdminModelForm(forms.ModelForm):
    summary = forms.CharField(widget=WYMEditor())
    selling = forms.CharField(widget=WYMEditor())
    
    class Meta:
        model = get_model('courses', 'courses')