wbcore 2.2.3__py2.py3-none-any.whl → 2.2.5__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. wbcore/contrib/color/admin.py +28 -0
  2. wbcore/contrib/color/apps.py +5 -0
  3. wbcore/contrib/color/enums.py +17 -0
  4. wbcore/contrib/color/factories.py +10 -0
  5. wbcore/contrib/color/fields.py +29 -0
  6. wbcore/contrib/color/forms.py +13 -0
  7. wbcore/contrib/color/models.py +62 -0
  8. wbcore/contrib/color/tests/conftest.py +10 -0
  9. wbcore/contrib/color/tests/test_color_models.py +61 -0
  10. wbcore/contrib/color/tests/test_fields.py +25 -0
  11. wbcore/contrib/documents/tests/conftest.py +30 -0
  12. wbcore/contrib/documents/tests/test_models.py +144 -0
  13. wbcore/contrib/example_app/tests/test_models/test_event.py +87 -0
  14. wbcore/contrib/example_app/tests/test_models/test_match.py +210 -0
  15. wbcore/contrib/example_app/tests/test_models/test_others.py +159 -0
  16. wbcore/contrib/example_app/tests/test_serializers/test_league_serializer.py +34 -0
  17. wbcore/contrib/example_app/tests/test_serializers/test_match_serializer.py +134 -0
  18. wbcore/contrib/example_app/tests/test_serializers/test_role_serializer.py +13 -0
  19. wbcore/contrib/example_app/tests/test_serializers/test_sport_serializer.py +14 -0
  20. wbcore/contrib/example_app/tests/test_serializers/test_stadium_serializer.py +14 -0
  21. wbcore/contrib/example_app/tests/test_serializers/test_team_result_serializer.py +30 -0
  22. wbcore/contrib/example_app/tests/test_serializers/test_team_serializer.py +70 -0
  23. wbcore/contrib/example_app/tests/test_viewsets/test_event_viewset.py +162 -0
  24. wbcore/contrib/example_app/tests/test_viewsets/test_league_viewset.py +84 -0
  25. wbcore/contrib/example_app/tests/test_viewsets/test_match_viewset.py +65 -0
  26. wbcore/contrib/example_app/tests/test_viewsets/test_person_viewset.py +166 -0
  27. wbcore/contrib/example_app/tests/test_viewsets/test_role_viewset.py +75 -0
  28. wbcore/contrib/example_app/tests/test_viewsets/test_sport_viewset.py +75 -0
  29. wbcore/contrib/example_app/tests/test_viewsets/test_stadium_viewset.py +75 -0
  30. wbcore/contrib/example_app/tests/test_viewsets/test_team_viewset.py +92 -0
  31. wbcore/contrib/example_app/tests/test_viewsets/test_teamresult_viewset.py +58 -0
  32. wbcore/contrib/example_app/tests/test_viewsets/test_utils_viewsets.py +124 -0
  33. wbcore/contrib/guardian/apps.py +6 -0
  34. wbcore/contrib/guardian/configurations.py +3 -0
  35. wbcore/contrib/guardian/filters.py +21 -0
  36. wbcore/contrib/guardian/tasks.py +10 -0
  37. wbcore/contrib/guardian/urls.py +12 -0
  38. wbcore/contrib/guardian/utils.py +124 -0
  39. wbcore/contrib/notifications/viewsets/configs/notification_types.py +27 -0
  40. wbcore/contrib/notifications/viewsets/configs/notifications.py +85 -0
  41. wbcore/contrib/workflow/tests/test_models/step/test_decision_step.py +79 -0
  42. wbcore/contrib/workflow/tests/test_models/step/test_email_step.py +45 -0
  43. wbcore/contrib/workflow/tests/test_models/step/test_finish_step.py +105 -0
  44. wbcore/contrib/workflow/tests/test_models/step/test_join_step.py +127 -0
  45. wbcore/contrib/workflow/tests/test_models/step/test_script_step.py +24 -0
  46. wbcore/contrib/workflow/tests/test_models/step/test_split_step.py +49 -0
  47. wbcore/contrib/workflow/tests/test_models/step/test_step.py +621 -0
  48. wbcore/contrib/workflow/tests/test_models/step/test_user_step.py +225 -0
  49. wbcore/contrib/workflow/tests/test_models/test_condition.py +103 -0
  50. wbcore/contrib/workflow/tests/test_models/test_data.py +134 -0
  51. wbcore/contrib/workflow/tests/test_models/test_process.py +98 -0
  52. wbcore/contrib/workflow/tests/test_models/test_transition.py +128 -0
  53. wbcore/contrib/workflow/tests/test_models/test_workflow.py +358 -0
  54. wbcore/templates/forms.py +0 -0
  55. wbcore/test/e2e_helpers_methods/e2e_checks.py +121 -0
  56. wbcore/test/e2e_helpers_methods/e2e_helper_methods.py +395 -0
  57. wbcore/tests/test_permissions/test_backend.py +29 -0
  58. {wbcore-2.2.3.dist-info → wbcore-2.2.5.dist-info}/METADATA +1 -1
  59. {wbcore-2.2.3.dist-info → wbcore-2.2.5.dist-info}/RECORD +60 -16
  60. wbcore/contrib/agenda/release_notes/1_0_0.md +0 -13
  61. wbcore/contrib/authentication/release_notes/1_0_0.md +0 -13
  62. wbcore/contrib/currency/release_notes/1_0_0.md +0 -13
  63. wbcore/contrib/directory/release_notes/1_0_0.md +0 -13
  64. wbcore/contrib/directory/release_notes/1_0_1.md +0 -13
  65. wbcore/contrib/documents/release_notes/1_0_0.md +0 -13
  66. wbcore/contrib/geography/release_notes/1_0_0.md +0 -13
  67. wbcore/contrib/io/release_notes/1_0_0.md +0 -13
  68. wbcore/contrib/notifications/release_notes/1_0_0.md +0 -13
  69. wbcore/contrib/tags/release_notes/1_0_0.md +0 -13
  70. wbcore/docs/orderable.md +0 -29
  71. wbcore/docs/reparent.md +0 -13
  72. wbcore/templates/reversion/compare_detail.html +0 -19
  73. {wbcore-2.2.3.dist-info → wbcore-2.2.5.dist-info}/WHEEL +0 -0
@@ -1,13 +0,0 @@
1
- Date: 2023-04-26
2
- Module: Agenda
3
- Summary: Initial Release Note
4
- Version: 1.0.0
5
-
6
- ## New Features
7
- - Bootstrap module versioning
8
-
9
- ## Enhancements
10
- ./.
11
-
12
- ## Bugfixes
13
- ./.
@@ -1,13 +0,0 @@
1
- Date: 2023-04-26
2
- Module: Authentication
3
- Summary: Initial Release Note
4
- Version: 1.0.0
5
-
6
- ## New Features
7
- - Bootstrap module versioning
8
-
9
- ## Enhancements
10
- ./.
11
-
12
- ## Bugfixes
13
- ./.
@@ -1,13 +0,0 @@
1
- Date: 2023-04-26
2
- Module: Currency
3
- Summary: Initial Release Note
4
- Version: 1.0.0
5
-
6
- ## New Features
7
- - Bootstrap module versioning
8
-
9
- ## Enhancements
10
- ./.
11
-
12
- ## Bugfixes
13
- ./.
@@ -1,13 +0,0 @@
1
- Date: 2023-04-26
2
- Module: Directory
3
- Summary: Initial Release Note
4
- Version: 1.0.0
5
-
6
- ## New Features
7
- - Bootstrap module versioning
8
-
9
- ## Enhancements
10
- ./.
11
-
12
- ## Bugfixes
13
- ./.
@@ -1,13 +0,0 @@
1
- Date: 2023-05-10
2
- Module: Directory
3
- Summary: Employee Employer Table improvements
4
- Version: 1.0.1
5
-
6
- ## New Features
7
- ./.
8
-
9
- ## Enhancements
10
- - Streamlined Employee-Employer sub tables
11
-
12
- ## Bugfixes
13
- - Don't delete the underlying employer/employer when deleting a employee employer relationship
@@ -1,13 +0,0 @@
1
- Date: 2023-04-26
2
- Module: Document
3
- Summary: Initial Release Note
4
- Version: 1.0.0
5
-
6
- ## New Features
7
- - Bootstrap module versioning
8
-
9
- ## Enhancements
10
- ./.
11
-
12
- ## Bugfixes
13
- ./.
@@ -1,13 +0,0 @@
1
- Date: 2023-04-26
2
- Module: Geography
3
- Summary: Initial Release Note
4
- Version: 1.0.0
5
-
6
- ## New Features
7
- - Bootstrap module versioning
8
-
9
- ## Enhancements
10
- ./.
11
-
12
- ## Bugfixes
13
- ./.
@@ -1,13 +0,0 @@
1
- Date: 2023-04-26
2
- Module: I/O
3
- Summary: Initial Release Note
4
- Version: 1.0.0
5
-
6
- ## New Features
7
- - Bootstrap module versioning
8
-
9
- ## Enhancements
10
- - Allow for an automatic view resource created from the view serializer for export
11
-
12
- ## Bugfixes
13
- ./.
@@ -1,13 +0,0 @@
1
- Date: 2023-04-26
2
- Module: Notification
3
- Summary: Initial Release Note
4
- Version: 1.0.0
5
-
6
- ## New Features
7
- - Bootstrap module versioning
8
-
9
- ## Enhancements
10
- ./.
11
-
12
- ## Bugfixes
13
- ./.
@@ -1,13 +0,0 @@
1
- Date: 2023-04-26
2
- Module: Tags
3
- Summary: Initial Release Note
4
- Version: 1.0.0
5
-
6
- ## New Features
7
- - Bootstrap module versioning
8
-
9
- ## Enhancements
10
- ./.
11
-
12
- ## Bugfixes
13
- ./.
wbcore/docs/orderable.md DELETED
@@ -1,29 +0,0 @@
1
- # Orderable View
2
-
3
- An orderable view enables the user to freely reorder rows inside AG Grid by drag-and-drop.
4
-
5
- **NOTE**: As these changes are saved in a model field, this will change the order globally for each user! Reordering on a per-user basis requires a way more sophisticated approach that is currently out of scope. Please also keep in mind that this also means that different orders for different views of the same model are not possible.
6
-
7
- ## Implementation Steps
8
-
9
- ### Simple Reordering
10
-
11
- Reorder rows inside a basic list view. Also includes the first level of tree views (level 0).
12
-
13
- 1. Add the `OrderableModel` from `wbcore.models.orderable` to your model and migrate. Set initial values for existing instances by either `Model.orderable_objects.reset_order()` or calling `save()` on every object.
14
- 2. Add the `order` field to your serializer.
15
- 3. Add the `OrderableMixin` from `wbcore.viewsets.mixins` to your viewset. If you have defined a viewset ordering, make sure to first order by `order`.
16
- 4. Add both `reorderable_column="order"` and `reorderable_endpoint=reverse(f"{endpoint.basename}-reorder", args=["{{id}}"], request=self.request)` to your list display.
17
-
18
- ### Tree Child Reordering
19
-
20
- We currently only support reordering the first child row (i.e. level 1).
21
-
22
- 1. Add the `OrderableModel` from `wbcore.models.orderable` to your model and migrate. Also add the class variable `PARTITION_BY` to your class and set it to the name of the foreign key field to the child's parent to partition the order values based on the parent. In this case the order number is unique only for the parent and not over the entire model anymore. Set initial values for existing instances by either `Model.orderable_objects.reset_order()` or calling `save()` on every object.
23
- 2. Add the `order` field to your serializer.
24
- 3. Add the `OrderableMixin` from `wbcore.viewsets.mixins` to your viewset. If you have defined a viewset ordering, make sure to first order by `order`.
25
- 4. Add both `tree_reorderable_column="order"` and `tree_reorderable_endpoint=reverse(f"{endpoint.basename}-reorder", args=["{{id}}"], request=self.request)` to **the parent's** list display.
26
-
27
- ## Example
28
-
29
- For an example please take a look at _example_app/team_. In this case we wanted both level 0 (Team) and level 1 (Player) to be reorderable so this example incorporates both a simple reordering for the parent level and a tree child reordering for the child level.
wbcore/docs/reparent.md DELETED
@@ -1,13 +0,0 @@
1
- # Reparent View
2
-
3
- A reparent view enables the user to switch a child's parent object inside a tree view by drag-and-dropping the child inside the new parent. Please note that this is currently only supported with level 1 children inside the tree view.
4
-
5
- ## Implementation Steps
6
-
7
- 1. Add a `PARENT_FK` class variable to the child's model and set it to the field name of the foreign key to the parent.
8
- 2. Add the `ReparentMixin` from `wbcore.viewsets.mixins` to your viewset.
9
- 3. Add both `tree_reparent_pk_field=f"{pk_field_name}"` and `tree_reparent_endpoint=reverse(f"{endpoint.basename}-reparent", args=["{{id}}"], request=self.request)` to the parent's list display.
10
-
11
- ## Example
12
-
13
- For an example please take a look at _example_app/team_. Drag-and-dropping a child (Player) inside a new parent (Team) will transfer this player to a new team.
@@ -1,19 +0,0 @@
1
- <style type="text/css">
2
- /* minimal style for the diffs */
3
- pre.highlight {
4
- max-width: 900px;
5
- white-space: pre-line;
6
- }
7
- del, ins {
8
- color: #000;
9
- text-decoration: none;
10
- }
11
- del { background-color: #ffe6e6; }
12
- ins { background-color: #e6ffe6; }
13
- sup.follow { color: #5555ff; }
14
- </style>
15
-
16
-
17
- {% include "reversion-compare/action_list_partial.html" %}
18
- {% include "reversion-compare/compare_partial.html" %}
19
- {% include "reversion-compare/compare_links_partial.html" %}
File without changes