Skip to content

Commit

Permalink
handling null zooniverse_subject on manualcorrection delete
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejcorey committed Jul 3, 2024
1 parent 49dc676 commit 0704a23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/zoon/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,14 +591,14 @@ def save(self, *args, **kwargs):

@receiver(models.signals.post_delete, sender=ManualCorrection)
def model_delete(sender, instance, **kwargs):
if instance:
if instance != None:
instance.zooniverse_subject.get_final_values()
instance.zooniverse_subject.save()


@receiver(models.signals.post_delete, sender=ExtraParcelCandidate)
def model_delete(sender, instance, **kwargs):
if instance:
if instance != None:
instance.zooniverse_subject.get_final_values()
instance.zooniverse_subject.save()

Expand Down

0 comments on commit 0704a23

Please sign in to comment.