from django.db.models.signals import post_save
from django.dispatch import receiver
from apps.hrm.models import Employee
from apps.rpm.models import Remployee, Rparty


# @receiver(post_save, sender=Employee)
# def update_remployee(sender, instance, created, **kwargs):
#     if instance.user and instance.type == 'remployee':
#         if created
#         reps = Remployee.objects.filter(employee=instance)
#         reps.update(name=instance.name, phone=instance.phone, id_number=instance.id_number, photo=instance.photo)