Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 8 and Version 9 of SimpleDelete


Ignore:
Timestamp:
12/20/05 18:31:11 (13 years ago)
Author:
Jerub
Comment:

added commend about cascading deletes

Legend:

Unmodified
Added
Removed
Modified
  • SimpleDelete

    v8 v9  
    1616 
    1717If there is a better way to do this, please update. 
     18 
     19''The way to cascade deletes is like this:'' 
     20{{{ 
     21#!python 
     22class Student(SQLObject): 
     23    grade = sqlobject.ForeignKey('Grade', cascade=True) 
     24class Grade(SQLObject): 
     25    pass 
     26 
     27Grade.delete(someid) 
     28}}} 
     29''-Jerub''