Fix domains module imports due to previous module relocation.
parent
b633c8c115
commit
3d932ba569
|
@ -11,8 +11,8 @@ from rest_framework.permissions import AllowAny
|
|||
from rest_framework import status, viewsets
|
||||
from rest_framework.decorators import list_route
|
||||
|
||||
from taiga.base.domains.models import DomainMember
|
||||
from taiga.base.domains import get_active_domain
|
||||
from taiga.domains.models import DomainMember
|
||||
from taiga.domains import get_active_domain
|
||||
from taiga.base.users.models import User, Role
|
||||
from taiga.base.users.serializers import UserSerializer
|
||||
from taiga.base import exceptions as exc
|
||||
|
|
|
@ -18,7 +18,7 @@ from taiga.base import auth
|
|||
from taiga.base.users.tests import create_user, create_domain
|
||||
from taiga.projects.tests import create_project
|
||||
|
||||
from taiga.base.domains.models import Domain, DomainMember
|
||||
from taiga.domains.models import Domain, DomainMember
|
||||
from taiga.projects.models import Membership
|
||||
|
||||
|
||||
|
|
|
@ -3,8 +3,7 @@
|
|||
from django.conf import settings
|
||||
from django_jinja import library
|
||||
|
||||
from taiga.base import domains
|
||||
|
||||
from taiga import domains
|
||||
|
||||
URLS = {
|
||||
"home": "/",
|
||||
|
|
|
@ -15,11 +15,11 @@ from rest_framework import status
|
|||
|
||||
from djmail.template_mail import MagicMailBuilder
|
||||
|
||||
from taiga.domains import get_active_domain
|
||||
from taiga.base import filters
|
||||
from taiga.base import exceptions as exc
|
||||
from taiga.base.permissions import has_project_perm
|
||||
from taiga.base.api import ModelCrudViewSet, ModelListViewSet, RetrieveModelMixin
|
||||
from taiga.base.domains import get_active_domain
|
||||
from taiga.base.users.models import Role
|
||||
from taiga.base.notifications.api import NotificationSenderMixin
|
||||
from taiga.projects.aggregates.tags import get_all_tags
|
||||
|
|
|
@ -19,11 +19,12 @@ from django.utils import timezone
|
|||
from picklefield.fields import PickledObjectField
|
||||
import reversion
|
||||
|
||||
from taiga.domains.models import DomainMember
|
||||
from taiga.projects.userstories.models import UserStory
|
||||
from taiga.base.utils.slug import slugify_uniquely
|
||||
from taiga.base.utils.dicts import dict_sum
|
||||
from taiga.base.domains.models import DomainMember
|
||||
from taiga.base.users.models import Role
|
||||
from taiga.projects.userstories.models import UserStory
|
||||
|
||||
from . import choices
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from taiga.base.permissions import BasePermission
|
||||
from taiga.base.domains import get_active_domain
|
||||
from taiga.domains import get_active_domain
|
||||
|
||||
|
||||
class ProjectPermission(BasePermission):
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from django.db.models.loading import get_model
|
||||
from taiga.base.domains import get_active_domain
|
||||
from taiga.domains import get_active_domain
|
||||
|
||||
|
||||
def create_project(id, owner, save=True):
|
||||
|
|
|
@ -4,12 +4,12 @@ from taiga.base import routers
|
|||
from taiga.base.auth.api import AuthViewSet
|
||||
from taiga.base.users.api import UsersViewSet, PermissionsViewSet
|
||||
from taiga.base.searches.api import SearchViewSet
|
||||
from taiga.base.domains.api import DomainViewSet, DomainMembersViewSet
|
||||
from taiga.base.resolver.api import ResolverViewSet
|
||||
from taiga.projects.api import (ProjectViewSet, MembershipViewSet, InvitationViewSet,
|
||||
UserStoryStatusViewSet, PointsViewSet, TaskStatusViewSet,
|
||||
IssueStatusViewSet, IssueTypeViewSet, PriorityViewSet,
|
||||
SeverityViewSet, ProjectAdminViewSet, RolesViewSet) #, QuestionStatusViewSet)
|
||||
from taiga.domains.api import DomainViewSet, DomainMembersViewSet
|
||||
from taiga.projects.milestones.api import MilestoneViewSet
|
||||
from taiga.projects.userstories.api import UserStoryViewSet, UserStoryAttachmentViewSet
|
||||
from taiga.projects.tasks.api import TaskViewSet, TaskAttachmentViewSet
|
||||
|
|
Loading…
Reference in New Issue