Re: Integrity error in get_or_create

2009-06-22 Thread Alessandro Ronchi
2009/6/21 Alessandro Ronchi > > it gets into the except and tries to open another User with the same id! > It seemed to be a very big int for uid that caused a truncation when saving into database. -- Alessandro Ronchi Skype: aronchi SOASI Soc.Coop. - www.soasi.com Sviluppo Software e Sistemi

Re: Integrity error in get_or_create

2009-06-21 Thread Alessandro Ronchi
2009/6/21 Alessandro Ronchi > I have a very strange problem. > > With this function: > > def get_current(self): > > facebook = get_facebook_client() > user, created = self.get_or_create(id=int(facebook.uid)) > if created: > # we could do some custom actions

Integrity error in get_or_create

2009-06-21 Thread Alessandro Ronchi
I have a very strange problem. With this function: def get_current(self): facebook = get_facebook_client() user, created = self.get_or_create(id=int(facebook.uid)) if created: # we could do some custom actions for new users here... pass