Skip to content

Commit

Permalink
do not send upon form submission
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienReuiller committed Sep 4, 2023
1 parent d285907 commit d59a59c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class Migration(migrations.Migration):
dependencies = [
("conversations", "0007_conversation_sender_first_name_and_more"),
("conversations", "0008_conversation_sender_user"),
]

operations = [
Expand Down
2 changes: 1 addition & 1 deletion lemarche/templates/conversations/admin_change_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{% if original.is_validated %}
<i>Validé et envoyé le {{ original.validated_at }}</i><br>
{% else %}
<button type="submit" name="_validate_conversation" value="1" class="button">Enregister et Autoriser la prise de contact</button>
<button type="submit" name="_validate_conversation" value="1" class="button">Enregistrer et Autoriser la prise de contact</button>
{% endif %}
</div>
{% endif %}
Expand Down
2 changes: 0 additions & 2 deletions lemarche/www/siaes/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
from lemarche.utils.urls import get_domain_url, get_encoded_url_from_params
from lemarche.www.auth.tasks import add_to_contact_list
from lemarche.www.conversations.forms import ContactForm
from lemarche.www.conversations.tasks import send_first_email_from_conversation
from lemarche.www.siaes.forms import SiaeDownloadForm, SiaeFavoriteForm, SiaeFilterForm, SiaeShareForm


Expand Down Expand Up @@ -261,7 +260,6 @@ def form_valid(self, form: ContactForm, siae: Siae):
siae=siae,
initial_body_message=cleaned_data.get("body_message"),
)
send_first_email_from_conversation(conv)
messages.add_message(
self.request,
messages.SUCCESS,
Expand Down

0 comments on commit d59a59c

Please sign in to comment.