Den 12/05/2014 kl. 10.53 skrev hito koto <hitokoto2...@gmail.com>:

> Hi,
> 
> i have this error , why ?
> 
> 
> (1062, "Duplicate entry '1' for key 'start_work_id'")
> Exception Type:       IntegrityError
> Exception Value:      
> (1062, "Duplicate entry '1' for key 'start_work_id'"

Please post your code for the model containing the "start_work" field. Must 
likely, you have defined the field with unique values and are now trying to 
create an model instance with a "start_work" foreign key reference that already 
exists.

Erik

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/C6114620-AB3E-46EF-BB7D-2A201249A297%40cederstrand.dk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to