On 20 syys, 01:47, Donald Stufft <[email protected]> wrote: > Can't you add the constraint in both code and in the DB. On older sites > the constraint just won't exist in the DB (Could include it in the release > notes so people can add it to existing sites if they wish).
Unfortunately no - the app label doesn't exist in the model. There is only reference to ContentType, and the app label is stored in there. So, a normal unique constraint doesn't work... - Anssi -- You received this message because you are subscribed to the Google Groups "Django developers" 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-developers?hl=en.
