def ready(self):
Profile = self.get_model('Profile')
Legal = self.get_model('Legal')
@receiver(post_save, sender=Legal, weak=False, dispatch_uid="on_legal_changed")
def on_book_changed(sender, instance, created, **kwargs):
if created:
Profile.objects.create(legal=instance)
Так?)
вроде да
Обсуждают сегодня