Z
order_field = ''
for x in request.query_params.getlist('ordering[]'):
val = ''
if x[0] == '-':
val += x + ' ASC, '
else:
val += x + ' DESC, '
order_field += val
Size: a a a
Z
DT
Z
DT
DT
JW
project_name/
apps/
templates/
static/
media/
settings.py
urls.py
wsgi.py
manage.py
JW
DT
JW
JW
DT
Х
Х
AA
from rest_framework.permissions.py import ...
DT
project_name/
apps/
templates/
static/
media/
settings.py
urls.py
wsgi.py
manage.py
DT
AA
AA
DT
AA