Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hub
ViralHostRangeDB
Commits
69d565c0
Commit
69d565c0
authored
Dec 29, 2021
by
Bryan BRANCOTTE
Browse files
django 3.2.*
parent
e804b2cb
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/viralhostrange/requirements.txt
View file @
69d565c0
Django
==2.2.*
Django
<4.0
psycopg2
psycopg2-binary
mod_wsgi
...
...
src/viralhostrange/viralhostrange/settings.py
View file @
69d565c0
...
...
@@ -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'
################################################################################
src/viralhostrange/viralhostrangedb/views_api.py
View file @
69d565c0
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment