From 61c973057abd879465a9d801bb077c23810c2907 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Barrag=C3=A1n=20Merino?= Date: Thu, 19 Feb 2015 22:37:05 +0100 Subject: [PATCH] US #55: Custom fields - Fix mixins order in CustomAttribute ViewSets --- taiga/projects/custom_attributes/api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/taiga/projects/custom_attributes/api.py b/taiga/projects/custom_attributes/api.py index c1edfe33..d0868690 100644 --- a/taiga/projects/custom_attributes/api.py +++ b/taiga/projects/custom_attributes/api.py @@ -36,7 +36,7 @@ from . import services # Custom Attribute ViewSets ####################################################### -class UserStoryCustomAttributeViewSet(ModelCrudViewSet, BulkUpdateOrderMixin): +class UserStoryCustomAttributeViewSet(BulkUpdateOrderMixin, ModelCrudViewSet): model = models.UserStoryCustomAttribute serializer_class = serializers.UserStoryCustomAttributeSerializer permission_classes = (permissions.UserStoryCustomAttributePermission,) @@ -47,7 +47,7 @@ class UserStoryCustomAttributeViewSet(ModelCrudViewSet, BulkUpdateOrderMixin): bulk_update_order_action = services.bulk_update_userstory_custom_attribute_order -class TaskCustomAttributeViewSet(ModelCrudViewSet, BulkUpdateOrderMixin): +class TaskCustomAttributeViewSet(BulkUpdateOrderMixin, ModelCrudViewSet): model = models.TaskCustomAttribute serializer_class = serializers.TaskCustomAttributeSerializer permission_classes = (permissions.TaskCustomAttributePermission,) @@ -58,7 +58,7 @@ class TaskCustomAttributeViewSet(ModelCrudViewSet, BulkUpdateOrderMixin): bulk_update_order_action = services.bulk_update_task_custom_attribute_order -class IssueCustomAttributeViewSet(ModelCrudViewSet, BulkUpdateOrderMixin): +class IssueCustomAttributeViewSet(BulkUpdateOrderMixin, ModelCrudViewSet): model = models.IssueCustomAttribute serializer_class = serializers.IssueCustomAttributeSerializer permission_classes = (permissions.IssueCustomAttributePermission,)