Ticket #696 (infoneeded defect)

Opened 4 years ago

Last modified 4 years ago

the south syncdb command ignore the errors that raise in base django syncdb

Reported by: tukki.zeta@… Owned by: andrew
Priority: major Milestone: 1.0
Component: commands Version: 0.7.2
Keywords: Cc:

Description

I mean that I have a view in my database(postgresql-9.0.1), let me call it a-view .
And my project has a new model want to create one foreignkey field to this a-view.

In the base django sycndb call, it will raise an exception that:

django.db.utils.DatabaseError?: referenced relation "product_product" is not a table. just because 'product_product' is a view.

but in south syncdb command call, it ignore that exception and create a table without add CONSTRAINT

Change History

comment:1 Changed 4 years ago by andrew

  • Status changed from new to infoneeded
  • Milestone set to 1.0

Are you saying that the exception isn't raised if you use syncdb while South is enabled, but it is if you remove South from INSTALLED_APPS?

Note: See TracTickets for help on using tickets.