i am trying to add manipulator on default User object. i am getting name, email and address from the form and trying to fill date_joined and last_login attributes myself as
user_data['date_joined_date']=datetime.date.today() user_data['date_joined_time']=(datetime.time() user_data['last_login_date']=datetime.date.today() user_data['last_login_time']=datetime.time() uerrors=umanipulator.get_validation_errors(user_data) it shows Exception Value: 'datetime.date' object has no attribute 'decode' if i convert all of them to string with strftime() as user_data['date_joined_date']=datetime.datetime.now().strftime('%Y-%m- %d') user_data['date_joined_time']=datetime.datetime.now().strftime('%H:%M: %S') user_data['last_login_date']=datetime.datetime.now().strftime('%Y-%m- %d') user_data['last_login_time']=datetime.datetime.now().strftime('%H:%M: %S') it says Exception Value: combine() argument 1 must be datetime.date, not str what actually i am doing is i am trying to add manipulator on two objects with umanipulator = User.AddManipulator() manipulator = Builder.AddManipulator() user_data['date_joined_date']=datetime.date.today() user_data['date_joined_time']=(datetime.time() user_data['last_login_date']=datetime.date.today() user_data['last_login_time']=datetime.time() uerrors=umanipulator.get_validation_errors(user_data) if not (uerrors): new_user = umanipulator.save(user_data) u=User.object.get(username__exact=user_data['id_username']) and with u.id i ll save other object with same method --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---