Skip to content

Set alters_data=True on model methods as appropriate #9077

@jeremystretch

Description

@jeremystretch

Proposed Changes

Audit the code base and set alters_data=True on all model methods which alter object data.

Justification

The Django documentation recommends this to avoid accidentally calling potentially destructive methods when rendering templates.

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: housekeepingChanges to the application which do not directly impact the end user

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions