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
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
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
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