TT#121955 force explicit relative import everywhere

Change-Id: Ie47dda3c812ccb99d164a67cbfbf9fed321f3c71
pull/5/head
Victor Seva 3 years ago
parent b4a4e72cc6
commit ec5c90554c

@ -14,18 +14,6 @@
# with this program. If not, see <http://www.gnu.org/licenses/>.
from django.db import models
from .conf import settings # noqa
# This is needed due to:
#
# AppConf classes depend on being imported during startup of the Django
# process. Even though there are multiple modules loaded automatically, only
# the models modules (usually the models.py file of your app) are guaranteed
# to be loaded at startup. Therefore its recommended to put your AppConf
# subclass(es) there, too.
#
# https://django-appconf.readthedocs.io/en/latest/
class ReleaseChanged(models.Model):
VMTYPE_CHOICES = (("CE", "spce"), ("PRO", "sppro"), ("CARRIER", "carrier"))

@ -1,19 +1,18 @@
# Copyright (C) 2017 The Sipwise Team - http://sipwise.com
# Copyright (C) 2017-2022 The Sipwise Team - http://sipwise.com
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
from release_dashboard.models import Project
from ..models import Project
def get_tags(projectname, regex=None):

@ -1,12 +1,15 @@
# Copyright (C) 2015 The Sipwise Team - http://sipwise.com
# Copyright (C) 2015-2022 The Sipwise Team - http://sipwise.com
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
import logging

@ -1,4 +1,4 @@
# Copyright (C) 2017 The Sipwise Team - http://sipwise.com
# Copyright (C) 2017-2022 The Sipwise Team - http://sipwise.com
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
@ -18,8 +18,8 @@ from django.views.generic.base import TemplateView
from natsort import humansorted
from ..conf import settings
from release_dashboard.utils import get_branches
from release_dashboard.utils import get_tags
from ..utils import get_branches
from ..utils import get_tags
regex_hotfix = re.compile(r"^mr[0-9]+\.[0-9]+\.[0-9]+$")
regex_mr = re.compile(r"^mr.+$")

@ -1,4 +1,4 @@
# Copyright (C) 2015 The Sipwise Team - http://sipwise.com
# Copyright (C) 2015-2022 The Sipwise Team - http://sipwise.com
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
@ -28,14 +28,14 @@ from . import _common_versions
from . import _hash_versions
from . import _projects_versions
from . import regex_mr
from .. import serializers
from .. import tasks
from ..conf import settings
from release_dashboard import serializers
from release_dashboard import tasks
from release_dashboard.forms.docker import BuildDockerForm
from release_dashboard.models import DockerImage
from release_dashboard.models import DockerTag
from release_dashboard.models import Project
from release_dashboard.utils import docker
from ..forms.docker import BuildDockerForm
from ..models import DockerImage
from ..models import DockerTag
from ..models import Project
from ..utils import docker
logger = logging.getLogger(__name__)

@ -1,4 +1,4 @@
# Copyright (C) 2015-2020 The Sipwise Team - http://sipwise.com
# Copyright (C) 2015-2022 The Sipwise Team - http://sipwise.com
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
@ -26,8 +26,8 @@ from django.db import models
from django.db.models import Q
from django.forms.models import model_to_dict
from ..conf import settings
from debian import deb822
from repoapi.conf import settings
logger = structlog.get_logger(__name__)
workfront_re = re.compile(r"TT#(\d+)")

@ -1,24 +1,23 @@
# Copyright (C) 2015 The Sipwise Team - http://sipwise.com
# Copyright (C) 2015-2022 The Sipwise Team - http://sipwise.com
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
from rest_framework import serializers
import repoapi.models as models
from . import models
class JenkinsBuildInfoSerializer(serializers.HyperlinkedModelSerializer):
class JenkinsBuildInfoSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = models.JenkinsBuildInfo
fields = '__all__'
fields = "__all__"

Loading…
Cancel
Save