You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
343 B
Python

from django import forms
from nano.privmsg.models import *
class PMForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(PMForm, self).__init__(*args, **kwargs)
self.fields['text'].widget = forms.Textarea(attrs={'cols': '80'})
class Meta:
model = PM
fields = ('text', 'subject')