Benjamin Dauvergne
6bdf330cf4
apps: prevent modifications of __class__.base_columns ( #46451 )
...
base_columns is not an instance attribute anymore.
2020-09-08 13:32:22 +02:00
Benjamin Dauvergne
ad6a7eaecf
Jenkinsfile: use python3-venv
2020-08-31 13:45:26 +02:00
Benjamin Dauvergne
fb55d92d3b
apps: force DateTimeField timezone to UTC ( #46038 )
...
DRF 3.7 changed the default timezone used by the DateTimeField
serializer field for the default timezone of Django instead of UTC. To
keep GLC plugin retrocompatible we force it to UTC again.
References:
https://www.django-rest-framework.org/community/release-notes/#370
https://github.com/encode/django-rest-framework/pull/5435
2020-08-24 17:38:55 +02:00
Benjamin Dauvergne
771205afa0
tox.ini: test against DRF 3.9 only ( #46038 )
...
It's the current version on debian buster (stable).
2020-08-24 17:38:55 +02:00
Benjamin Dauvergne
766df63a49
check-migrations.sh: use mktemp
2020-08-24 17:14:23 +02:00
Benjamin Dauvergne
70f00be9e6
custom_settings: ignore preferred_username from FC when it's already set ( #45866 )
2020-08-13 15:45:45 +02:00
Benjamin Dauvergne
c8e3d7e536
check-migrations: use bash instead of dash
2020-08-13 15:42:29 +02:00
Benjamin Dauvergne
0cdb505ce5
tox.ini: remove python2 support
2020-08-13 15:33:39 +02:00
Benjamin Dauvergne
8bfb36e8f9
getlasso.sh: use python2 as interpret
2020-08-13 15:32:40 +02:00
Frédéric Péters
6d0a064d6a
misc: adapt string view of FC user data for py3 ( #45467 )
2020-07-26 17:52:20 +02:00
Frédéric Péters
af72ac8183
misc: never alter form fields dictionary during iteration ( #45201 )
2020-07-16 19:01:17 +02:00
Benjamin Dauvergne
d78ce337ec
misc: dont mutate dictionnary during iteration ( #44869 )
2020-07-06 20:55:04 +02:00
Benjamin Dauvergne
901f9af326
debian: add dependency on django-redis
2020-07-03 14:40:26 +02:00
Benjamin Dauvergne
8dc42017ed
misc: remove requirement on python-magic
...
Python package changed between python3 and python2 on Debian
(python-magic is the pypi package python-magic, but python3-magic is the
pypi package file-magic :/)
2020-07-03 13:52:31 +02:00
Benjamin Dauvergne
0a4fa6b6fe
Jenkinsfile: remove files with find first
2020-07-03 10:38:44 +02:00
Benjamin Dauvergne
4757a9448e
tox.ini: do not skip install with pylint
2020-05-16 12:31:52 +02:00
Benjamin Dauvergne
abfaf85a43
tests: verify hooks by propagating exceptions
2020-05-16 11:57:19 +02:00
Benjamin Dauvergne
7b92d0fe55
tox.ini: add environment modifier to test against local authentic2
2020-05-16 11:39:30 +02:00
Benjamin Dauvergne
13e5dc68f1
drf39: force ou to "usagers" using HiddenField
2020-05-15 21:33:42 +02:00
Benjamin Dauvergne
89034068b4
dj22: replace django.core.urlresolvers by django.urls
2020-05-15 21:25:27 +02:00
Benjamin Dauvergne
081409b6ed
tox.ini: fix pylint env
2020-05-15 19:00:28 +02:00
Benjamin Dauvergne
6b0ba89189
Jenkinsfile: use virtualenv and pg_virtualenv
2020-05-15 18:41:24 +02:00
Benjamin Dauvergne
ce3a088a24
models: make Journal.actor nullable
2020-05-15 18:20:16 +02:00
Benjamin Dauvergne
e7f9e32fe0
migrations: fix choice labels
2020-05-15 18:20:16 +02:00
Benjamin Dauvergne
f7b6fdb2ee
py3: remove bytes strings from migrations
2020-05-15 18:20:16 +02:00
Benjamin Dauvergne
0058acbe97
tox.ini: add check-migrations.sh
2020-05-15 18:20:16 +02:00
Benjamin Dauvergne
5751075178
dj22: user.is_authenticated is a property
2020-05-15 18:20:16 +02:00
Benjamin Dauvergne
fe5b5fc47c
dj22: use MiddlewareMixin
2020-05-15 18:20:16 +02:00
Benjamin Dauvergne
d101944f7d
dj22: direct assignment to M2M fields is deprecated
2020-05-15 18:20:16 +02:00
Benjamin Dauvergne
15daeea356
dj22: add on_delete attribute to FK
2020-05-15 18:20:16 +02:00
Benjamin Dauvergne
a5e4d42e02
tox.ini: refactor, add dj22 target
2020-05-15 18:20:16 +02:00
Christophe Siraut
bac72330f1
Jenkinsfile: use default distribution target ( #41301 )
2020-04-24 13:54:35 +02:00
Frédéric Péters
2a9772ec62
debian: allow any django version in build depends
...
(it's just there to build translations)
2020-04-12 11:47:46 +02:00
Benjamin Dauvergne
6cd2fe4363
debian: add support for python3 ( #41564 )
2020-04-09 16:11:28 +02:00
Paul Marillonnet
b879ada6b8
py3: force text on b64-encoded test data ( #41220 )
2020-04-02 14:53:20 +02:00
Paul Marillonnet
f9f427321d
py3-compliant urlparse import from django ( #41220 )
2020-04-02 14:53:20 +02:00
Paul Marillonnet
ef9b1ea2bf
python3: use std pathlib instead of pathlib2 ( #41220 )
2020-04-02 14:06:03 +02:00
Paul Marillonnet
11aad74f84
py3-compliant dict items iteration ( #41220 )
2020-04-01 11:54:25 +02:00
Paul Marillonnet
9c6baea77b
provide a py3-compliant tox.ini file ( #41220 )
2020-04-01 11:54:13 +02:00
Frédéric Péters
c4a21af754
tox: limit enum34 to 1.1.6, for python 2 compatibility
2020-02-22 10:13:35 +01:00
Benjamin Dauvergne
37852c0660
tox.ini: remove nocoverage from the default envlist
2019-12-09 15:16:00 +01:00
Benjamin Dauvergne
c0ac563d40
middleware: split domain from port
2019-10-02 16:19:52 +02:00
Emmanuel Cazenave
c56a999b92
jenkins: use ci@entrouvert.org for notifications
2019-10-02 13:30:34 +02:00
Benjamin Dauvergne
67e3ab656b
tox.ini: only test with django 1.11 and postgres
2019-06-30 11:38:55 +02:00
Benjamin Dauvergne
60ed1c9514
make validation_context optional
2019-06-05 20:46:16 +02:00
Benjamin Dauvergne
0115147f5f
make validation_partner read-only through API
2019-06-04 22:52:09 +02:00
Benjamin Dauvergne
a94cfe7847
allow account validation through API ( #33472 )
...
- validation_context is limited to online and office.
- un-validation is forbidden.
- validating an already validated account is also forbidden.
- validation is only possible for OIDC clients
- on validation the OIDC client's OU slug is copied to the
validation_partner attribute
2019-06-04 22:46:28 +02:00
Benjamin Dauvergne
a2ee176a2f
apps: fix wrong syntax for filtering minor accounts ( #33678 )
2019-06-04 18:04:03 +02:00
Serghei Mihai
62c15348d3
settings: add support link to template vars ( #33649 )
2019-06-04 10:54:52 +02:00
Frédéric Péters
4ad40d8533
settings: set A2_OPENED_SESSION_COOKIE_NAME ( #33544 )
2019-05-29 15:48:55 +02:00