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.
- {wbtasks-1.59.16 → wbtasks-1.60.0}/PKG-INFO +1 -1
- {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/locale/de/LC_MESSAGES/django.po +0 -1
- {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/locale/fr/LC_MESSAGES/django.po +0 -1
- {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/models.py +7 -0
- {wbtasks-1.59.16 → wbtasks-1.60.0}/.gitignore +0 -0
- {wbtasks-1.59.16 → wbtasks-1.60.0}/pyproject.toml +0 -0
- {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/__init__.py +0 -0
- {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/admin.py +0 -0
- {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/apps.py +0 -0
- {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/factories.py +0 -0
- {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/filters.py +0 -0
- {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/locale/de/LC_MESSAGES/django.mo +0 -0
- {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/locale/en/LC_MESSAGES/django.mo +0 -0
- {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/locale/en/LC_MESSAGES/django.po +0 -0
- {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/locale/fr/LC_MESSAGES/django.mo +0 -0
- {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
- {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/migrations/__init__.py +0 -0
- {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/serializers.py +0 -0
- {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/tasks.py +0 -0
- {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/tests/__init__.py +0 -0
- {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/tests/conftest.py +0 -0
- {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/tests/test_filters.py +0 -0
- {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/tests/test_models.py +0 -0
- {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/tests/test_serializers.py +0 -0
- {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/tests/test_tasks.py +0 -0
- {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/tests/tests.py +0 -0
- {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/urls.py +0 -0
- {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/viewsets/__init__.py +0 -0
- {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/viewsets/buttons.py +0 -0
- {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/viewsets/display.py +0 -0
- {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/viewsets/menu.py +0 -0
- {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/viewsets/titles.py +0 -0
- {wbtasks-1.59.16 → wbtasks-1.60.0}/wbtasks/viewsets/viewsets.py +0 -0
|
@@ -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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|