I just tried this through the Admin and I do get this nice error
message:

Scripture with this book already exists for the given chapter, from
verse and to verse.

If I try it through the Django shell, I get an Integrity Error from
SQLite as expected.

A few things:

- If you attempt to do a straight SQL INSERT of a Scripture record
twice with two different id values, does SQLite complain at all?

- When I tried this using the model from your OP, the only thing I
changed was the choices for the book field. Can you share your
definition of constants.BIBLE_BOOKS so I can try again using your data?

- I am running SQLite version 3.3.4. Can you check that you too are on
a recent 3.3.x version?

-Rajesh


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to