wbtasks 1.59.16__tar.gz → 1.60.0__tar.gz

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 (33) hide show
  1. {wbtasks-1.59.16 → wbtasks-1.60.0}/PKG-INFO +1 -1
  2. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/locale/de/LC_MESSAGES/django.po +0 -1
  3. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/locale/fr/LC_MESSAGES/django.po +0 -1
  4. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/models.py +7 -0
  5. {wbtasks-1.59.16 → wbtasks-1.60.0}/.gitignore +0 -0
  6. {wbtasks-1.59.16 → wbtasks-1.60.0}/pyproject.toml +0 -0
  7. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/__init__.py +0 -0
  8. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/admin.py +0 -0
  9. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/apps.py +0 -0
  10. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/factories.py +0 -0
  11. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/filters.py +0 -0
  12. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/locale/de/LC_MESSAGES/django.mo +0 -0
  13. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/locale/en/LC_MESSAGES/django.mo +0 -0
  14. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/locale/en/LC_MESSAGES/django.po +0 -0
  15. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/locale/fr/LC_MESSAGES/django.mo +0 -0
  16. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/migrations/0001_initial_squashed_squashed_0006_alter_task_assigned_to_alter_task_in_charge_and_more.py +0 -0
  17. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/migrations/__init__.py +0 -0
  18. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/serializers.py +0 -0
  19. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/tasks.py +0 -0
  20. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/tests/__init__.py +0 -0
  21. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/tests/conftest.py +0 -0
  22. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/tests/test_filters.py +0 -0
  23. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/tests/test_models.py +0 -0
  24. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/tests/test_serializers.py +0 -0
  25. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/tests/test_tasks.py +0 -0
  26. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/tests/tests.py +0 -0
  27. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/urls.py +0 -0
  28. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/viewsets/__init__.py +0 -0
  29. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/viewsets/buttons.py +0 -0
  30. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/viewsets/display.py +0 -0
  31. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/viewsets/menu.py +0 -0
  32. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/viewsets/titles.py +0 -0
  33. {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/viewsets/viewsets.py +0 -0
@@ -1,5 +1,5 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wbtasks
3
- Version: 1.59.16
3
+ Version: 1.60.0
4
4
  Author-email: Christopher Wittlinger <c.wittlinger@stainly.com>
5
5
  Requires-Dist: wbcore
@@ -3,7 +3,6 @@
3
3
  # This file is distributed under the same license as the PACKAGE package.
4
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
  #
6
- #, fuzzy
7
6
  msgid ""
8
7
  msgstr ""
9
8
  "Project-Id-Version: PACKAGE VERSION\n"
@@ -3,7 +3,6 @@
3
3
  # This file is distributed under the same license as the PACKAGE package.
4
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
  #
6
- #, fuzzy
7
6
  msgid ""
8
7
  msgstr ""
9
8
  "Project-Id-Version: PACKAGE VERSION\n"
@@ -19,6 +19,7 @@ from wbcore.metadata.configs.display.instance_display.shortcuts import (
19
19
  create_simple_display,
20
20
  )
21
21
  from wbcore.shares.signals import handle_widget_sharing
22
+ from wbcore.signals import pre_merge
22
23
 
23
24
 
24
25
  def can_modify_status(instance, user):
@@ -219,3 +220,9 @@ def received_handle_share(
219
220
  widget_endpoint=widget_relative_endpoint,
220
221
  due_date=task_due_date,
221
222
  )
223
+
224
+
225
+ @receiver(pre_merge, sender="directory.Person")
226
+ def pre_merge_person_task(sender: models.Model, merged_object, main_object, **kwargs):
227
+ Task.objects.filter(requester=merged_object).update(requester=main_object)
228
+ Task.objects.filter(in_charge=merged_object).update(in_charge=main_object)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes