From: Seth Woodworth Date: Wed, 23 Jan 2013 08:52:11 +0000 (-0500) Subject: adding ModelForm for X-Git-Tag: release-20150131~549^2~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cf25775b83b509d8df5cd1f53ab4e0c4a63561dc;p=oweals%2Fkarmaworld.git adding ModelForm for --- diff --git a/karmaworld/apps/notes/forms.py b/karmaworld/apps/notes/forms.py new file mode 100644 index 0000000..17ba990 --- /dev/null +++ b/karmaworld/apps/notes/forms.py @@ -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',)