Hmm I seem to have hit another problem just after another!

I've got a form that lets user's select the birthday via three
dropdowns (day, month and year). This is all using newforms.
Basically, within my views.py file I have a function that creates new
users - one part of this process is to make sure the three dropdowns
are joined together to create the timestamp so I can insert into the
database.

Here is this join:

# join date back together
days =
[form.clean_data['dob_year'],form.clean_data['dob_month'],form.clean_data['dob_day']]
_dob = "-".join(days)

# save user
user =
User.objects.create_user(username=_username,email=_email,password=_password)
user.save()

# save custom profile
user_profile =
UserProfile(user_id=user.id,gender=_gender,birthday=_dob,living=_location)
user_profile.save()

However - what happens is I get this error:

AttributeError at /register/
'unicode' object has no attribute 'strftime'

Now I am sure it is referring to the join I am trying to do. I've
tried wrapping unicode() around it but that didn't help either.

Any ideas? I've had a look on here but can't see any solutions.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to