Django ForeignKey which does not require referential integrity?

57 views
Skip to first unread message

diabeteman

unread,
May 27, 2012, 6:21:58 PM5/27/12
to django...@googlegroups.com
Hello everyone,

I recently posted a question on stackoverflow.com but didn't get any answers. I've found similar questions but without any satisfying solutions.


Could you give me some orientation on how to create a custom ForeignKey field that does not create database constraints with syncdb and south migrations?

Thanks in advance for the help :)

Robin

diabeteman

unread,
Jun 4, 2012, 4:15:08 AM6/4/12
to django...@googlegroups.com
Bump ;-)

I know my question is a bit technical but could someone help ?

diabeteman

unread,
Jun 4, 2012, 4:32:22 AM6/4/12
to django...@googlegroups.com
For the record, I've looked deep into django's code to find what needs to be done, but I think that simply subclassing ForeignKey will not be enough.

NB: I use South for managing my database schema, so I figure I'll need to do something about that too. But it may be out of the subject here :)

Reply all
Reply to author
Forward
0 new messages