mirror of
https://github.com/Rushilwiz/SkoolOS.git
synced 2025-04-20 04:10:18 -04:00
9 lines
274 B
Python
9 lines
274 B
Python
from django.contrib.auth.models import User
|
|
from django.db.models.signals import post_save
|
|
from django.dispatch import receiver
|
|
from .models import Student, Teacher
|
|
|
|
@receiver(post_save, sender=User)
|
|
def save_profile(sender, instance, **kwargs):
|
|
instance.profile.save()
|