Ejemplo n.º 1
0
 def save_email(self):
     email = self.cleaned_data["shop_email"]
     email_obj, created = PrelaunchContact.objects.get_or_create(
         shop_email=email)
     email_obj.save()
     if created:
         send_contact_email(email, "Merchant")
     return
Ejemplo n.º 2
0
 def save_email(self):
     email = self.cleaned_data["person_email"]
     email_obj, created = PrelaunchContact.objects.get_or_create(
         person_email=email)
     email_obj.save()
     if created:
         send_contact_email(email, "Person")
     return
Ejemplo n.º 3
0
 def save_email(self):
     email = self.cleaned_data["shop_email"]
     email_obj, created = PrelaunchContact.objects.get_or_create(
         shop_email=email)
     email_obj.save()
     if created:
         send_contact_email(email, "Merchant")
     return
Ejemplo n.º 4
0
 def save_email(self):
     email = self.cleaned_data["person_email"]
     email_obj, created = PrelaunchContact.objects.get_or_create(
         person_email=email)
     email_obj.save()
     if created:
         send_contact_email(email, "Person")
     return
Ejemplo n.º 5
0
 def save_contact(self):
     response = reply_object()
     contact = Contact.objects.create(name=self.cleaned_data["name"],
                                      email=self.cleaned_data["email"],
                                      inquiry=self.cleaned_data["inquiry"])
     contact.save()
     send_contact_email(contact.name, contact.email, contact.inquiry)
     response["code"] = settings.APP_CODE["CALLBACK"]
     return response
Ejemplo n.º 6
0
 def save_contact(self):
     response = reply_object()
     contact = Contact.objects.create(
         name=self.cleaned_data["name"], email=self.cleaned_data["email"], inquiry=self.cleaned_data["inquiry"]
     )
     contact.save()
     send_contact_email(contact.name, contact.email, contact.inquiry)
     response["code"] = settings.APP_CODE["CALLBACK"]
     return response