django - Use newly created object in receiver -
is possible use newly created object in receiver? similar
from django.db import models django.dispatch import receiver class mymodel(models.model): text = models.charfield(...) ... @receiver(models.signals.post_save, sender=mymodel) def execute_after_save(sender, instance, created, *args, **kwargs): if created: # example n = newobj.title
Comments
Post a Comment