adding the CourseForm modelform
authorSeth Woodworth <seth@sethish.com>
Fri, 1 Feb 2013 20:02:23 +0000 (15:02 -0500)
committerSeth Woodworth <seth@sethish.com>
Fri, 1 Feb 2013 20:02:23 +0000 (15:02 -0500)
karmaworld/apps/courses/forms.py [new file with mode: 0644]

diff --git a/karmaworld/apps/courses/forms.py b/karmaworld/apps/courses/forms.py
new file mode 100644 (file)
index 0000000..7b18fe1
--- /dev/null
@@ -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')
+