Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Davide Arcuri committed Mar 29, 2024
1 parent 385a299 commit 9eaefe7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions orochi/website/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def new_plugin(sender, instance, created, **kwargs):

@staticmethod
@receiver(pre_save, sender=Dump)
def cache_previous_mode(sender, instance, *args, **kwargs):
def cache_previous_status(sender, instance, *args, **kwargs):
original_status = None
if instance.id:
original_status = Dump.objects.get(pk=instance.id).status
Expand Down Expand Up @@ -261,7 +261,7 @@ def dump_saved(sender, instance, created, **kwargs):

@staticmethod
@receiver(pre_save, sender=Result)
def cache_previous_mode(sender, instance, *args, **kwargs):
def cache_previous_result(sender, instance, *args, **kwargs):
original_result = None
if instance.id:
original_result = Result.objects.get(pk=instance.id).result
Expand Down

0 comments on commit 9eaefe7

Please sign in to comment.