Last active
August 29, 2015 14:05
-
-
Save chr0nu5/74c3fd8817d417c3b35b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
from django.db.models import signals | |
def after_save_pergunta(sender, instance, **kwargs): | |
#enviar email aqui | |
pass | |
class Pergunta(models.Model): | |
nome = models.CharField(max_length=255) | |
signals.post_save.connect(after_save_pergunta, sender=Pergunta) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment