projects
/
oweals
/
karmaworld.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'master' of github.com:FinalsClub/karmaworld
[oweals/karmaworld.git]
/
karmaworld
/
apps
/
notes
/
forms.py
1
#!/usr/bin/env python
2
# -*- coding:utf8 -*-
3
# Copyright (C) 2012 FinalsClub Foundation
4
5
from django.forms import ModelForm
6
from django.forms import TextInput
7
8
from karmaworld.apps.notes.models import Note
9
10
class NoteForm(ModelForm):
11
class Meta:
12
model = Note
13
fields = ('name', 'tags', 'year',)
14
widgets = {
15
'name': TextInput()
16
}