mirror of
https://framagit.org/la-chariotte/la-chariotte.git
synced 2025-05-01 11:22:24 +02:00
commit for rebase
This commit is contained in:
parent
4181588a3a
commit
d20cafe5db
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@ from django.contrib.auth.mixins import UserPassesTestMixin
|
|||
from django.shortcuts import get_object_or_404, render
|
||||
from django.urls import reverse, reverse_lazy
|
||||
from django.views import generic
|
||||
from django.utils import timezone
|
||||
|
||||
from la_chariotte.mail.utils import send_order_confirmation_mail
|
||||
|
||||
|
@ -48,7 +49,7 @@ def place_order(request, code):
|
|||
author = OrderAuthor.objects.create(
|
||||
first_name=first_name, last_name=last_name, email=email, phone=phone
|
||||
)
|
||||
order = Order.objects.create(author=author, grouped_order=grouped_order, note=note)
|
||||
order = Order.objects.create(author=author, grouped_order=grouped_order, note=note, created_date=timezone.now())
|
||||
|
||||
# add items to the order
|
||||
error_message = None
|
||||
|
|
Loading…
Reference in a new issue