Skip to content

Commit

Permalink
Update models.py delete ratings before links (stephenmcd#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
w194 authored Oct 8, 2016
1 parent aad2392 commit a026f64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drum/links/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from django.core.urlresolvers import reverse
from django.db import models
from django.db.models import Q
from django.db.models.signals import post_save, post_delete
from django.db.models.signals import post_save, pre_delete
from django.dispatch import receiver
from django.utils.encoding import python_2_unicode_compatible

Expand Down Expand Up @@ -76,7 +76,7 @@ def __str__(self):


@receiver(post_save, sender=Rating)
@receiver(post_delete, sender=Rating)
@receiver(pre_delete, sender=Rating)
def karma(sender, **kwargs):
"""
Each time a rating is saved, check its value and modify the
Expand Down

0 comments on commit a026f64

Please sign in to comment.