On 1 Lug, 15:34, Lennon <
lpru...@hotmail.com> wrote:
> In my application I have a form that removes the relationship between
> two data types without deleting each piece of data.
>
> To do this I run a delete on the many to many relation lookup table
> that stores the relationships.
>
> For each of the relationships removed I run this line in web2py:
>
> db(db.relation_table.data_type_A_id==data_type_A_id) &
> db.relation_table.data_type_B_id==data_type_B_id)).delete()