limit=10&key=%22l_u_adminadmincom_spisok-2014-07-23%22&startkey_docid=s_0cb04ab972de49e783c2cee7dfc688a6
class Send_Msg(forms.Form):
def __init__(self, documents, *args, **kwargs):
row = [(row.id, row.first_name+' '+row.first_name) for row in documents]
super(Send_Msg, self).__init__(*args, **kwargs)
self.fields['friends'] = forms.MultipleChoiceField(choices=row)
self.fields['msg'] = forms.CharField(min_length=10, widget=forms.Textarea(attrs={'width': "100%", 'cols': "70", 'rows': "20", }),
label="Ваше сообщение")
$_SESSION['user_id']=user_id
user_id=$_SESSION['user_id'];