From e9362a10ab39b4a62a5d917f2f1fefeb38eba533 Mon Sep 17 00:00:00 2001 From: Seth Woodworth Date: Fri, 1 Feb 2013 15:02:23 -0500 Subject: [PATCH] adding the CourseForm modelform --- karmaworld/apps/courses/forms.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 karmaworld/apps/courses/forms.py 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') + -- 2.25.1