Skip to content

Add on_delete = "Cascade" to an example in the docs #172

Description

@derdilla

Motivation

I was confused on how to add an ON DELETE CASCADE constraint via macros. The docs mention it once, a generic example randomly includes it, but the deletion page never talks about it.

Proposed Solutions

It would be great if the deletion page could include an example of a more complex case with relations. A few words about the difference between adding on_delete = "Cascade" to the relation and calling .cascade_delete(). (I noticed that the later didn't work on its own?)

Additional Information

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions