Hi !
Just tested the following:
- create clean DB
- run syncdb
- compare obtained tables when using Django 1.6.8 and Django 1.7.1
My findings :
In Django 1.7, some fields with models.ForeignKey no longer get the DB
constraint.
In Django 1.6, I indeed get (in postgresql) for instance:
CONSTRAINT TABLE_FIELD_id_fkey FOREIGN KEY (FIELD_id)
REFERENCES django_content_type (id) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION DEFERRABLE INITIALLY
DEFERRED,
The models for which it fails are always:
- ContentType
- Auth.Group
- Auth.permission
- django_site
My local apps are always defined after "django.contrib.contenttypes" and
"django.contrib.auth" in INSTALLED_APPS.
Putting "django.contrib.contenttypes" as my last app does not change the DB
construction.
So does it have to do with the order in INSTALLED_APPS ?
Is it a regression ?
Thanks for the input !
NotSqrt
--
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 [email protected].
To post to this group, send email to [email protected].
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/db34ffa6-8ee5-4d37-80ad-4cb4fbd5ef99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.