[Answer]-Why does Django only create one "REFERENCES" clause on a ManyToMany table?

1👍

Because the exmaple_foo table hasn’t been created yet, so it can’t add a reference. However it does do that afterwards by doing an ALTER TABLE to add an index, which you can see when you do ./manage.py sqlall.

However this method of table creation is superseded by the migrations functionality in 1.7.

Leave a comment