don't call as_operations if changeset has been applied
This commit is contained in:
parent
d0bd0d585f
commit
b69b70fbad
1 changed files with 2 additions and 0 deletions
|
@ -477,6 +477,8 @@ class ChangeSet(models.Model):
|
|||
|
||||
@property
|
||||
def as_operations(self) -> DatabaseOperationCollection:
|
||||
if self.state == "applied":
|
||||
return DatabaseOperationCollection()
|
||||
return self.get_changes_as_operations().operations
|
||||
|
||||
@property
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue