On 15-10-12 14:50, Zheng Li wrote:
get_or_create shouldn't give duplicate entry error
Perhaps you have existing data that violates your unique-together constraint? Data that existed before that constraint was in place?
Check it directly in your database by searching for that a=a, b=b entry. Reinout -- Reinout van Rees http://reinout.vanrees.org/ rein...@vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure what to do, make something. -- Paul Graham" -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.