01e38acffe
Notifify me of new comments via email. Notifify me of new posts via email. pwerlaw.co/bin/2019/03/27/how-to-add-a-tax-when-creating-an-anm-in-autoinitiate-oasis. php php Terban Next Step Cleaner 0.5.0 for Adobe Lightroom 4.0 & 5.0? The ebay account that you specified has been flagged and confirmed for review by ebay. Ville de Pont-de-Chaigne, l'un des cinq centres des villes du XVIe siècle en France: un bâtiment le plus riche du XVIIe siècle. Credit Unions & Credit Card Companies.Q:
How to get all the email id from database in Django
Hi I am working on Django. I want to send a mail to all the email id of the database (table name - 'userprofile') I want to send the mail from the model name(person)
userprofile/models.py
class Person(models.Model):
name = models.CharField(max_length=100,blank=True)
email = models.EmailField()
def __str__(self):
return self.name
person/models.py
class person(models.Model):
name = models.CharField(max_length=100,blank=True)
email = models.EmailField()
role = models.CharField(max_length=100,blank=True)
email/models.py
class Email(models.Model):
from_ = models.ForeignKey(Person, on_delete=models.CASCADE, null=True, blank=True)
to = models.ForeignKey(Person, on_delete=models.CASCADE, null=True, blank=True)
subject = models.CharField
Related links:
Comments