projects
/
oweals
/
karmaworld.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f5d412
)
adding the CourseForm modelform
author
Seth Woodworth
<seth@sethish.com>
Fri, 1 Feb 2013 20:02:23 +0000
(15:02 -0500)
committer
Seth 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]
patch
|
blob
diff --git a/karmaworld/apps/courses/forms.py
b/karmaworld/apps/courses/forms.py
new file mode 100644
(file)
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')
+