mirror of
https://github.com/rjNemo/villafleurie
synced 2026-06-11 04:46:46 +00:00
updated to Django 3
This commit is contained in:
parent
0a932a8fbe
commit
c412e2abdc
4 changed files with 6 additions and 12 deletions
|
|
@ -93,7 +93,4 @@ Le visiteur doit pouvoir :
|
|||
- factoriser le code de réservation
|
||||
- formulaire de réservation : les apparts sont hard codés rendre ça dynamique
|
||||
|
||||
|
||||
## BUGS
|
||||
- Le message field du formulaire de réservation est trop court.
|
||||
- le numéro de téléphone enlever le field spécifique
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
from django import forms
|
||||
from .models import Reservation, Place, Guest
|
||||
from phonenumber_field.modelfields import PhoneNumberField
|
||||
# from _field.modelfields import Field
|
||||
|
||||
|
||||
class ReservationForm(forms.Form):
|
||||
|
|
@ -20,7 +20,7 @@ class ReservationForm(forms.Form):
|
|||
)
|
||||
phone = forms.CharField(
|
||||
label='',
|
||||
max_length=100,
|
||||
max_length=30,
|
||||
min_length=4,
|
||||
widget=forms.TextInput(attrs={
|
||||
'class': 'form-control form-control-lg form-control-a', 'placeholder': 'Téléphone *'}),
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
asgiref==3.2.3
|
||||
dj-database-url==0.5.0
|
||||
Django==2.2.7
|
||||
django-phonenumber-field==3.0.1
|
||||
gunicorn==20.0.4
|
||||
phonenumbers==8.11.0
|
||||
Pillow==6.2.0
|
||||
Django==3.0
|
||||
Pillow==6.2.1
|
||||
psycopg2==2.8.4
|
||||
pytz==2019.3
|
||||
sqlparse==0.3.0
|
||||
|
|
|
|||
|
|
@ -19,8 +19,7 @@ INSTALLED_APPS = [
|
|||
'django.contrib.sessions',
|
||||
'django.contrib.messages',
|
||||
'django.contrib.staticfiles',
|
||||
'rental.apps.RentalConfig',
|
||||
'phonenumber_field',
|
||||
'rental.apps.RentalConfig'
|
||||
]
|
||||
|
||||
SITE_ID = 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue