Commit Graph

19 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
Frédéric Péters 497994bc5b misc: do not export deleted role parenting relations (#67489) 2022-07-19 16:40:40 +02:00
Paul Marillonnet 50e48b760a discard django_rbac generic getters in main a2 code (#58695) 2021-11-26 10:04:48 +01:00
Valentin Deniaud e0b86a7691 misc: fix unused-variable pylint error (#56982) 2021-09-24 11:30:14 +02:00
Benjamin Dauvergne 34e42dacb1 misc: update import statements (#55602) 2021-07-15 12:32:26 +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
Benjamin Dauvergne 30439cada0 tests: remove unused variable (#41342) 2020-04-17 10:42:42 +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 bd09473532 a2_rbac: fix RoleParenting.__str__ magic method (#33328) 2019-05-28 17:42:37 +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
Emmanuel Cazenave 17dd1b2338 create 'import_site' and 'export_site' commands (#16514) 2018-04-16 11:41:32 +02:00