From: Seth Woodworth Date: Fri, 1 Feb 2013 20:02:23 +0000 (-0500) Subject: adding the CourseForm modelform X-Git-Tag: release-20150131~528^2~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e9362a10ab39b4a62a5d917f2f1fefeb38eba533;p=oweals%2Fkarmaworld.git adding the CourseForm modelform --- diff --git a/karmaworld/apps/courses/forms.py b/karmaworld/apps/courses/forms.py new file mode 100644 index 0000000..7b18fe1 --- /dev/null +++ b/karmaworld/apps/courses/forms.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python +# -*- coding:utf8 -*- +# Copyright (C) 2012 FinalsClub Foundation + +from django.forms import ModelForm + +from karmaworld.apps.courses.models import Course + +class CourseForm(ModelForm): + class Meta: + model = Course + fields = ('name', 'school', 'desc', 'url', 'instructor_name', \ + 'instructor_email') +