コード例 #1
0
ファイル: forms.py プロジェクト: devasiajoseph/somethinglocal
 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
コード例 #2
0
ファイル: forms.py プロジェクト: devasiajoseph/somethinglocal
 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
コード例 #3
0
ファイル: forms.py プロジェクト: devasiajoseph/somethinglocal
 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
コード例 #4
0
ファイル: forms.py プロジェクト: devasiajoseph/somethinglocal
 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
コード例 #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
コード例 #6
0
ファイル: forms.py プロジェクト: devasiajoseph/fratography
 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