#5819: FlatPage model field url is not unique
--------------------------------+-------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: nobody
Status: new | Component: Contrib apps
Version: SVN | Resolution:
Keywords: flatpages | Stage: Unreviewed
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
--------------------------------+-------------------------------------------
Comment (by ubernostrum):
Replying to [comment:6 Jesper Noehr <[EMAIL PROTECTED]>]:
> I don't entirely agree with that. The constraint is not across tables,
as I'm not suggesting (url, site) but (url, site_ID). Both columns are in
the same table, so it's a simple unique constraint.
No, they are '''not''' in the same table; the `url` column is in the
flatpages table, and the `site_id` column is in a separate join table used
to implement the many-to-many relationship. Go look at your database if
you don't believe me.
--
Ticket URL: <http://code.djangoproject.com/ticket/5819#comment:7>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---