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

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -