Hello,
--- On Wed, 6/30/10, Diez B. Roggisch <[email protected]> wrote: > If I may cite myself: > > """ > Add a "required=True" parameter to the > ManyToOne-Country-declaration. > """ > > And from my full listing: > > class City(BaseModel): > """ > """ > using_options(tablename = "cities") > > name = Field(Unicode) > country = > ManyToOne("Country",ondelete="RESTRICT", required=True) I did, I did. class City(BaseModel): """ """ using_options(tablename = "cities") name = Field(Unicode) country = ManyToOne("Country",ondelete="RESTRICT", required=True) I suspect drop_all() dosen't work as I expect. I expect drop_all to really delete the tables from the database, which is not done if you look at the trace, and this is confirmed by the test i made : I manually dropped the tables from the db and re-run the *same* script (not changing a line) and it "succesfully failed" © this time. What's your opinion. Y.Chaouche -- 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.
