Search code examples
pythondjangodjango-adminmodels

Call python code after creation of a model instance in the admin interface


I'm kinda lost, i need to call some python code after the creation of a model instance in the admin interface, and i've got no idea how to google for it.


Solution

  • Write a function to listen on the post_save signal, this will work whenever the model is created (irrespective of the means).