--- On Tue, 6/29/10, Diez B. Roggisch <[email protected]> wrote: > > You don't make country a required field. So SQLAlchemy will > set it to NULL, > which is perfectly fine from the model. > > Add a "required=True" parameter to the > ManyToOne-Country-declaration. > > > > Diez
What I want is that the delete operation raises a "sqlalchemy.exc.IntegrityError: (IntegrityError)", and I think that required=True dosen't help here, I added it with no results (delete still passes). --- On Tue, 6/29/10, yoav glazner <[email protected]> wrote: > are you using sqlite? it doesn't have FKs... Nope, PostgreSQL, and the SQLAlchemy version of the legacy base code I'm working on works ok (I mean raises an exception on a prohibited delete) -- You received this message because you are subscribed to the Google Groups "SQLElixir" 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/sqlelixir?hl=en.
