Hi Seemant, > So, ideally, something like "Genesis 1:1-2" should be allowed exactly > once in the table. However, that doesn't seem to be the case. The > directive works with two (like book and chapter or from and to), but > not with more. Am I using it in a wrong way?
No. You are using it correctly. > > PS I tried with both sqlite and postgresql This is supposed to work exactly as you are using it. So, we need to see if the database constraint for the uniqueness is actually being executed by Django when the model is created. If you have that model loaded in SQLite still, please print out the table definition for Scripture through the SQLite shell: > .schema your_app_scripture That should show you a clause like this in your table creation DDL: UNIQUE ("book", "chapter", "from_verse", "to_verse") Do you see that? -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 -~----------~----~----~----~------~----~------~--~---