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'
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
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
4 matches
Mail list logo