refactor: use Singles table to get acc_frozen_upto and modifier during migration

This commit is contained in:
khushi8112
2025-12-01 13:40:51 +05:30
parent 4df20a3122
commit c7e7e02b5b
2 changed files with 15 additions and 3 deletions

View File

@@ -605,7 +605,7 @@ class Company(NestedSet):
def validate_pending_reposts(self, old_doc):
if old_doc and old_doc.accounts_frozen_till_date != self.accounts_frozen_till_date:
if self.accounts_frozen_till_date:
check_pending_reposting(self.accounts_frozen_till_date)
check_pending_reposting(self.accounts_frozen_till_date, self.name)
def set_default_accounts(self):
default_accounts = {