Hi! I have such code which adds new user:
from django.contrib.auth.models import User ... user = User(username=username, password=newpass, is_staff=False, is_active=True, is_superuser=False, email=new_data['email']) 2 date fields ("last_login","date_joined") are supposed to be added automatically. But on add such SQL error is being generated: ProgrammingError at /accounts/login/ ERROR: column "last_login" is of type timestamp with time zone but expression is of type integer HINT: You will need to rewrite or cast the expression. INSERT INTO "auth_user" ("username","first_name","last_name","email","password","is_staff","is_active","is_superuser","last_login","date_joined") VALUES ('alex_5493','','','[EMAIL PROTECTED]','2u9p4',False,True,False,2006-11-14,2006-11-14) It seems we need to pass dates as string, not as it is passed now. Interesting if anyone around hit this trouble? I am running on top of latest svn trunk. Alex --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---