Merge branch 'main' into nonfree_main

This commit is contained in:
Jonas 12t 2022-01-14 11:08:22 +04:00
commit 5f896eba44
5 changed files with 21 additions and 18 deletions

View File

@ -12,7 +12,10 @@ from django.db.models.signals import post_save, pre_save
from django.dispatch import receiver from django.dispatch import receiver
from django.urls import reverse from django.urls import reverse
from django.utils import timezone from django.utils import timezone
from django.contrib.postgres.fields import JSONField
# from django.contrib.postgres.fields import JSONField
from django.db.models import JSONField
from django.utils.text import slugify from django.utils.text import slugify
from solo.models import SingletonModel from solo.models import SingletonModel
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
@ -71,7 +74,7 @@ class Configuration(SingletonModel):
adhesion_obligatoire = models.BooleanField(default=False) adhesion_obligatoire = models.BooleanField(default=False)
button_adhesion = models.BooleanField(default=False) button_adhesion = models.BooleanField(default=False)
name_required_for_ticket = models.BooleanField(default=False, verbose_name=_("Billet nominatifs")) name_required_for_ticket = models.BooleanField(default=True, verbose_name=_("Billet nominatifs"))
map_img = StdImageField(upload_to='images/', map_img = StdImageField(upload_to='images/',
null=True, blank=True, null=True, blank=True,

View File

@ -29,13 +29,13 @@ else:
DEBUG = False DEBUG = False
ALLOWED_HOSTS = ['*'] ALLOWED_HOSTS = ['*']
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
# Application definition # Application definition
SHARED_APPS = ( SHARED_APPS = (
'django_tenants', # mandatory 'django_tenants', # mandatory
'jet.dashboard', # 'jet.dashboard',
'jet', # 'jet',
'Customers', # you must list the app where your tenant model resides in 'Customers', # you must list the app where your tenant model resides in
'django.contrib.contenttypes', 'django.contrib.contenttypes',
@ -223,8 +223,8 @@ CELERY_RESULT_BACKEND=os.environ.get('CELERY_BACKEND', 'redis://redis:6379/0')
# Jet Menu # Jet Menu
# -------------------------------------/ # -------------------------------------/
JET_SIDE_MENU_COMPACT = True # JET_SIDE_MENU_COMPACT = True
JET_CHANGE_FORM_SIBLING_LINKS = False # JET_CHANGE_FORM_SIBLING_LINKS = False
LOGGING = { LOGGING = {
'version': 1, 'version': 1,

View File

@ -20,8 +20,8 @@ from Administration.admin_public import public_admin_site
# from AuthBillet.views import TokenCreateView_custom # from AuthBillet.views import TokenCreateView_custom
urlpatterns = [ urlpatterns = [
path('jet/', include('jet.urls', 'jet')), # Django JET URLS # path('jet/', include('jet.urls', 'jet')), # Django JET URLS
re_path(r'^jet/dashboard/', include('jet.dashboard.urls', 'jet-dashboard')), # Django JET dashboard URLS # re_path(r'^jet/dashboard/', include('jet.dashboard.urls', 'jet-dashboard')), # Django JET dashboard URLS
# on modifie la creation du token pour rajouter access_token dans la réponse pour Postman # on modifie la creation du token pour rajouter access_token dans la réponse pour Postman
# re_path(r"^auth/token/login/?$", TokenCreateView_custom.as_view(), name="login"), # re_path(r"^auth/token/login/?$", TokenCreateView_custom.as_view(), name="login"),
re_path(r'^auth/', include('djoser.urls')), re_path(r'^auth/', include('djoser.urls')),

View File

@ -23,8 +23,8 @@ from Administration.admin_tenant import staff_admin_site
from AuthBillet.views import TokenCreateView_custom from AuthBillet.views import TokenCreateView_custom
urlpatterns = [ urlpatterns = [
path('jet/', include('jet.urls', 'jet')), # Django JET URLS # path('jet/', include('jet.urls', 'jet')), # Django JET URLS
re_path(r'^jet/dashboard/', include('jet.dashboard.urls', 'jet-dashboard')), # Django JET dashboard URLS # re_path(r'^jet/dashboard/', include('jet.dashboard.urls', 'jet-dashboard')), # Django JET dashboard URLS
# path('admin/', staff_admin_site.urls, name="staff_admin_site"), # path('admin/', staff_admin_site.urls, name="staff_admin_site"),
re_path(r'^admin\/{0,}', staff_admin_site.urls, name="staff_admin_site"), re_path(r'^admin\/{0,}', staff_admin_site.urls, name="staff_admin_site"),

View File

@ -8,22 +8,22 @@ RUN apt install -y python3-pip
RUN pip install pip --upgrade RUN pip install pip --upgrade
## PYTHON ## PYTHON
RUN pip install django==2.2 RUN pip install django==3.2
RUN pip install django-admin-sortable2==1.0.2 # RUN pip install django-admin-sortable2==1.0.2
RUN pip install djangorestframework RUN pip install djangorestframework
RUN pip install django-jet # RUN pip install django-jet
RUN pip install requests RUN pip install requests
RUN pip install gunicorn RUN pip install gunicorn
RUN pip install django-admin-rangefilter # RUN pip install django-admin-rangefilter
RUN pip install sentry-sdk RUN pip install sentry-sdk
RUN pip install python-dateutil RUN pip install python-dateutil
RUN pip install Werkzeug RUN pip install Werkzeug
RUN pip install django-solo RUN pip install django-solo
RUN pip install admin-totals # RUN pip install admin-totals
RUN pip install django-tenants RUN pip install django-tenants
RUN pip install mollie-api-python RUN pip install mollie-api-python
RUN pip install markdown # Markdown support for the browsable API. RUN pip install markdown # Markdown support for the browsable API.
RUN pip install django-filter # Filtering support # RUN pip install django-filter # Filtering support
RUN pip install djoser RUN pip install djoser
RUN pip install djangorestframework_simplejwt RUN pip install djangorestframework_simplejwt
RUN pip install social-auth-app-django RUN pip install social-auth-app-django
@ -45,7 +45,7 @@ RUN apt-get install -y --no-install-recommends postgresql-client
## LATER ? ## LATER ?
# RUN pip install mailchimp3 # RUN pip install mailchimp3
RUN apt install cron -y # RUN apt install cron -y
# RUN apt install curl -y # RUN apt install curl -y
RUN apt install borgbackup -y RUN apt install borgbackup -y
# RUN pip install inotify # RUN pip install inotify