Skip to content

Commit

Permalink
refactor(base): move model calling of clean to tenancy model class
Browse files Browse the repository at this point in the history
ref: #426 #433
  • Loading branch information
jon-nfc committed Dec 21, 2024
1 parent 32430f8 commit dcd9e91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/access/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@ def get_url_kwargs(self) -> dict:

def save(self, force_insert=False, force_update=False, using=None, update_fields=None):

self.clean()

if self.organization is None:

raise ValidationError('Organization not defined')
Expand Down
2 changes: 0 additions & 2 deletions app/core/mixin/history_save.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,6 @@ def save(self, force_insert=False, force_update=False, using=None, update_fields
is the data that was saved to the DB.
"""

self.clean()

before = {}

try:
Expand Down

0 comments on commit dcd9e91

Please sign in to comment.