Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.
/ pulp Public archive

Commit

Permalink
Fix publication deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
David Davis authored and daviddavis committed Feb 16, 2018
1 parent f4ebdf7 commit b4a0041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pulpcore/pulpcore/app/models/publication.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def delete(self, **kwargs):
Deletes the Task.created_resource when complete is False.
"""
with transaction.atomic():
CreatedResource.objects.delete(object_id=self.pk)
CreatedResource.objects.filter(object_id=self.pk).delete()
super().delete(**kwargs)

def __enter__(self):
Expand Down

0 comments on commit b4a0041

Please sign in to comment.