src/hdalab/forms.py
author ymh <ymh.work@gmail.com>
Sat, 28 Feb 2015 06:45:26 +0100
changeset 465 ddd669c54685
parent 458 604b887e70c3
child 473 f469ab22542d
permissions -rw-r--r--
Added tag V03.00-alpha.10 for changeset 209f6b75d9e5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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)
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
    next = forms.CharField(required=False)