| author | ymh <ymh.work@gmail.com> |
| Wed, 04 Mar 2015 15:24:23 +0100 | |
| changeset 473 | f469ab22542d |
| parent 458 | 604b887e70c3 |
| child 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 |
|
604b887e70c3
add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
9 |
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
|
10 |
|
|
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 |
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
|
12 |
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
|
13 |
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
|
14 |
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
|
15 |
|
|
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 |
message = forms.CharField(widget=forms.Textarea,required=False) |
| 473 | 17 |
next = forms.CharField(required=False) |
18 |
||
19 |
class HdalabRenkanFavoriteForm(forms.ModelForm): |
|
20 |
class Meta: |
|
21 |
model = HdalabRenkan |
|
22 |
fields = ['favorite'] |