Re: newforms and views

2006-12-28 Thread ElGranAzul
Yes, it works, a lot of thanks. About convert username, I think I should create a select with the users if the user is an admin, but usually each member profile is a OneToOne with the user id, so it could be a hidden field. Now I'm going to try to handle subforms like with old manipulators. :)

Re: newforms and views

2006-12-28 Thread Osso
I have yet to get into the new forms so I can answer you precisely but you should try something like: class MemberDescriptionForm(forms.Form): - user = forms.CharField() +user_id = forms.CharField() You probably have to write to your own code to convert the username to an id and I didn'

newforms and views

2006-12-28 Thread Ricardo Barrios
Hi all I'm testing newforms, but there is no much docs here, but searching in django page docs, the code, tests and this list there is some information, but I've found a problem and i don't know how to do it. If someone could give me a tip I will be very grateful. :) The model is something like

Re: newforms and views

2006-12-28 Thread ElGranAzul
Sorry, but i press the enter key before end :( The form definition is: class MemberDescriptionForm(forms.Form): user = forms.CharField() gender = forms.ChoiceField(choices=GENDER, widget=RadioSelect) birth = forms.DateField(widget=SelectBirthDateWidget) ## SelectBirthDateWidget is a s