From cfdf804d8b6ef14d0ed5b7b35b4698cfca3d8a83 Mon Sep 17 00:00:00 2001 From: David Haynes Date: Mon, 24 Apr 2017 21:13:05 -0400 Subject: [PATCH] Add back some implicit imports where needed - I took a gamble on how far we can go, now need to remedy --- go/go/management/commands/expirelinks.py | 2 +- go/go/management/commands/test_expirelinks.py | 2 +- go/go/templatetags/go_extras.py | 2 +- go/go/templatetags/test_go_extras.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go/go/management/commands/expirelinks.py b/go/go/management/commands/expirelinks.py index b0730b7..8c15b34 100644 --- a/go/go/management/commands/expirelinks.py +++ b/go/go/management/commands/expirelinks.py @@ -11,7 +11,7 @@ from django.core.management.base import BaseCommand from django.utils import timezone # App Imports -from .models import URL +from go.models import URL class Command(BaseCommand): """ diff --git a/go/go/management/commands/test_expirelinks.py b/go/go/management/commands/test_expirelinks.py index 0cad8bc..c059b49 100644 --- a/go/go/management/commands/test_expirelinks.py +++ b/go/go/management/commands/test_expirelinks.py @@ -16,7 +16,7 @@ from django.test import TestCase from django.utils import timezone # App Imports -from .models import URL, RegisteredUser +from go.models import URL, RegisteredUser class ExpireLinksTest(TestCase): """ diff --git a/go/go/templatetags/go_extras.py b/go/go/templatetags/go_extras.py index 4f690a7..dc24403 100644 --- a/go/go/templatetags/go_extras.py +++ b/go/go/templatetags/go_extras.py @@ -10,7 +10,7 @@ from __future__ import (absolute_import, division, print_function, from django import template # App Imports -from .models import RegisteredUser +from go.models import RegisteredUser # To be a valid tag library, the module must contain a module-level variable # named register that is a template.Library instance, in which all the tags and diff --git a/go/go/templatetags/test_go_extras.py b/go/go/templatetags/test_go_extras.py index 875963f..519ec51 100644 --- a/go/go/templatetags/test_go_extras.py +++ b/go/go/templatetags/test_go_extras.py @@ -11,7 +11,7 @@ from django.contrib.auth.models import User from django.test import TestCase # App Imports -from .models import RegisteredUser +from go.models import RegisteredUser from .go_extras import is_approved, is_registered class GoExtrasTest(TestCase): -- GitLab