Skip to content

Commit

Permalink
Fix typo in docs model protection example
Browse files Browse the repository at this point in the history
Type: trivial
  • Loading branch information
peterthomassen authored and Wes Kendall committed Nov 26, 2023
1 parent df27598 commit 00b86af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ProtectedModel(models.Model):

When migrations are created and executed, `ProtectedModel` will raise an exception anytime a deletion is attempted.

Let's extend this example further and only protect deletions on inactive objects. In this example, the trigger conditionally runs when the row being deleted (the `OLD` row in trigger terminology) is still active:
Let's extend this example further and only protect deletions on active objects. In this example, the trigger conditionally runs when the row being deleted (the `OLD` row in trigger terminology) is still active:

```python
class ProtectedModel(models.Model):
Expand Down

0 comments on commit 00b86af

Please sign in to comment.