Merge pull request #902 from jakedt/notransitive
Image parents do not have to be nulled transitively on repo delete
This commit is contained in:
commit
206ffc65af
1 changed files with 2 additions and 1 deletions
|
@ -349,7 +349,8 @@ class Repository(BaseModel):
|
|||
|
||||
# These models don't need to use transitive deletes, because the referenced objects
|
||||
# are cleaned up directly
|
||||
skip_transitive_deletes = {RepositoryTag, RepositoryBuild, RepositoryBuildTrigger, BlobUpload}
|
||||
skip_transitive_deletes = {RepositoryTag, RepositoryBuild, RepositoryBuildTrigger, BlobUpload,
|
||||
Image}
|
||||
|
||||
# We need to sort the ops so that models get cleaned in order of their dependencies
|
||||
ops = reversed(list(self.dependencies(delete_nullable)))
|
||||
|
|
Reference in a new issue