Commit Graph

29 Commits

Author SHA1 Message Date
Valentin Deniaud 5f0c03e32f a2_rbac: move role attributes to real model fields (#69895) 2022-11-29 14:05:38 +01:00
Valentin Deniaud cb9df4fbb2 a2_rbac: migrate existing operations to new model (#69902) 2022-10-19 14:53:34 +02:00
Benjamin Dauvergne 43c256ee7b misc: replace deprecated ugettext by gettext (#69974) 2022-10-07 11:42:51 +02:00
Valentin Deniaud a925b6731f data_transfer: simplify logic (#51464) 2021-12-13 09:44:47 +01:00
Valentin Deniaud 1f1a64de7e import_site: allow creating roles in default ou (#51464) 2021-12-13 09:44:36 +01:00
Valentin Deniaud 735d6b7617 manager: allow importing roles from different OUs (#58826) 2021-12-13 09:43:14 +01:00
Paul Marillonnet 50e48b760a discard django_rbac generic getters in main a2 code (#58695) 2021-11-26 10:04:48 +01:00
Valentin Deniaud b5b6fbdca0 misc: fix use-dict-literal pylint error (#56982) 2021-09-24 11:21:18 +02:00
Valentin Deniaud df66d77b6b misc: fix no-self-argument pylint error (#56982) 2021-09-24 11:21:17 +02:00
Valentin Deniaud 56972ed0da misc: remove excessive spaces from strings (#56007) 2021-08-10 11:47:18 +02:00
Valentin Deniaud 7bc0fcadff misc: apply pyupgrade (#55519) 2021-07-12 12:03:44 +02:00
Benjamin Dauvergne a265c6267e misc: remove unicode prefixed strings (#53714) 2021-05-04 11:32:24 +02:00
Benjamin Dauvergne 5baca2ba03 data_transfer: validate Role.slug and Role.uuid fields (#52192) 2021-03-31 19:13:37 +02:00
Valentin Deniaud 86d946adcd misc: apply isort (#52457) 2021-03-30 13:59:53 +02:00
Valentin Deniaud 4bb33d3d3c misc: apply black (#52457) 2021-03-30 11:32:55 +02:00
Valentin Deniaud 62b7fb4d60 data_transfer: allow missing role slug (#51463) 2021-03-15 09:58:23 +01:00
Valentin Deniaud 4f3c6a47d6 manager: add ou and role imports (#45082) 2020-08-31 10:05:59 +02:00
Benjamin Dauvergne 3ab7b24503 data_transfer: use unicode_literals pragma (#42584) 2020-05-07 18:26:22 +02:00
Benjamin Dauvergne 795a2ff886 translation update 2020-04-17 14:23:27 +02:00
Benjamin Dauvergne 52ab85eb5b data_transfer: validate models before updating/creating them (#41342)
To prevent collision between roles when altering their name and their
slug is already unique. Ex.:

   R1(slug=a, name=A) -import-> R1(slug=a, name=B)
   R2(slug=b, name=B)
2020-04-17 10:42:42 +02:00
Benjamin Dauvergne 8f5aadf89f data_transfer: use ValidationError instead of DataImportError (#41342) 2020-04-17 10:42:42 +02:00
Valentin Deniaud d177f4a296 data_transfer: fail importing on empty role uuid (#31083) 2019-10-08 16:16:34 +02:00
Benjamin Dauvergne 9fbbf0519a spring cleaning (#32934)
* reorganize views and forms
* add copyright headers to all .py files
* fix all style errors reported by flake8
2019-05-14 16:19:25 +02:00
Benjamin Dauvergne 002dff7acf data_transfer: add export context (#29162) 2019-01-31 15:04:56 +01:00
Benjamin Dauvergne a44d45fc24 data_transfer: save object in update_model (fixes #29545) 2019-01-21 12:07:21 +01:00
Benjamin Dauvergne ce72b9a24e data_transfer: fix indentation/whitespaces (#29545) 2019-01-21 12:07:21 +01:00
Benjamin Dauvergne 53b9f74ab2 data_transfer: move update_model (#29545) 2019-01-21 12:07:21 +01:00
Benjamin Dauvergne b610880f07 data_transfer: check that import is a dictionnary 2018-12-07 15:04:02 +01:00
Emmanuel Cazenave 17dd1b2338 create 'import_site' and 'export_site' commands (#16514) 2018-04-16 11:41:32 +02:00