mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-31 01:07:03 -05:00
feat: Implement MFA authentication, add ride statistics model, and update various services, APIs, and tests across the application.
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
from django.db.models.signals import post_save, post_delete
|
||||
from django.dispatch import receiver
|
||||
from django.db.models import Avg
|
||||
from django.db.models.signals import post_delete, post_save
|
||||
from django.dispatch import receiver
|
||||
|
||||
from .models import Review
|
||||
|
||||
|
||||
@receiver(post_save, sender=Review)
|
||||
@receiver(post_delete, sender=Review)
|
||||
def update_average_rating(sender, instance, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user