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. :)
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'
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
3 matches
Mail list logo