adding ModelForm for
authorSeth Woodworth <seth@sethish.com>
Wed, 23 Jan 2013 08:52:11 +0000 (03:52 -0500)
committerSeth Woodworth <seth@sethish.com>
Wed, 23 Jan 2013 08:52:11 +0000 (03:52 -0500)
karmaworld/apps/notes/forms.py [new file with mode: 0644]

diff --git a/karmaworld/apps/notes/forms.py b/karmaworld/apps/notes/forms.py
new file mode 100644 (file)
index 0000000..17ba990
--- /dev/null
@@ -0,0 +1,12 @@
+#!/usr/bin/env python
+# -*- coding:utf8 -*-
+# Copyright (C) 2012  FinalsClub Foundation
+
+from django.forms import ModelForm
+
+from karmaworld.apps.notes.models import Note
+
+class NoteForm(ModelForm):
+    class Meta:
+        model = Note
+        fields = ('name', 'tags', 'desc',)