Commit 69d565c0 authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

django 3.2.*

parent e804b2cb
Django==2.2.*
Django<4.0
psycopg2
psycopg2-binary
mod_wsgi
......
......@@ -291,5 +291,6 @@ BACKUP_MIN_WEEKS_TO_KEEP = int(18 * 52 / 12)
# Django tunning for this project
################################################################################
DATA_UPLOAD_MAX_NUMBER_FIELDS = 10000
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
################################################################################
......@@ -182,6 +182,9 @@ class Round(Func):
arity = 2
arg_joiner = '::numeric, '
def __init__(self, *expressions, **extra):
super().__init__(*expressions, output_field=FloatField(), **extra)
def as_sqlite(self, compiler, connection, **extra_context):
return super().as_sqlite(compiler, connection, arg_joiner=", ", **extra_context)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment