| author | ymh <ymh.work@gmail.com> |
| Tue, 07 Jul 2015 15:59:31 +0200 | |
| changeset 640 | 939461cc322b |
| parent 529 | f479d60ca502 |
| permissions | -rw-r--r-- |
|
458
604b887e70c3
add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
1 |
# -*- coding: utf-8 -*- |
|
604b887e70c3
add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
2 |
''' |
|
604b887e70c3
add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
3 |
Created on Feb 20, 2015 |
|
604b887e70c3
add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
4 |
|
|
604b887e70c3
add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
5 |
@author: ymh |
|
604b887e70c3
add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
6 |
''' |
|
604b887e70c3
add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
7 |
|
|
604b887e70c3
add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
8 |
from django import forms |
| 529 | 9 |
|
|
458
604b887e70c3
add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
10 |
from hdalab.models import HdalabRenkan |
|
604b887e70c3
add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
11 |
|
| 529 | 12 |
|
|
458
604b887e70c3
add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
13 |
class HdalabRenkanStateForm(forms.ModelForm): |
|
604b887e70c3
add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
14 |
class Meta: |
|
604b887e70c3
add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
15 |
model = HdalabRenkan |
|
604b887e70c3
add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
16 |
fields = ['id','state'] |
|
604b887e70c3
add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
17 |
|
|
604b887e70c3
add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
18 |
message = forms.CharField(widget=forms.Textarea,required=False) |
| 473 | 19 |
next = forms.CharField(required=False) |
20 |
||
21 |
class HdalabRenkanFavoriteForm(forms.ModelForm): |
|
22 |
class Meta: |
|
23 |
model = HdalabRenkan |
|
24 |
fields = ['favorite'] |
|
| 529 | 25 |