Skip to content

Commit

Permalink
#140 Change imports to new redirects app
Browse files Browse the repository at this point in the history
  • Loading branch information
duker33 committed Jun 22, 2018
1 parent 7794b08 commit 58becc2
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion generic_admin/mixins.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.contrib import admin
from django.contrib.redirects.models import Redirect
from redirects.models import Redirect
from django.contrib.sites.shortcuts import get_current_site
from django.core.urlresolvers import reverse
from django.db.models import QuerySet, F
Expand Down
2 changes: 1 addition & 1 deletion redirects/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
default_app_config = 'django.contrib.redirects.apps.RedirectsConfig'
default_app_config = 'redirects.apps.RedirectsConfig'
2 changes: 1 addition & 1 deletion redirects/admin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.contrib import admin
from django.contrib.redirects.models import Redirect
from redirects.models import Redirect


@admin.register(Redirect)
Expand Down
2 changes: 1 addition & 1 deletion redirects/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@


class RedirectsConfig(AppConfig):
name = 'django.contrib.redirects'
name = 'redirects'
verbose_name = _('Redirects')
2 changes: 1 addition & 1 deletion redirects/middleware.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.apps import apps
from django.conf import settings
from django.contrib.redirects.models import Redirect
from redirects.models import Redirect
from django.contrib.sites.shortcuts import get_current_site
from django.core.exceptions import ImproperlyConfigured
from django.http import HttpResponseGone, HttpResponsePermanentRedirect
Expand Down
2 changes: 1 addition & 1 deletion tests/generic_admin/test_admin_models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.contrib.messages.storage.fallback import FallbackStorage
from django.contrib.redirects.models import Redirect
from redirects.models import Redirect
from django.test import TestCase
from django.http.request import HttpRequest

Expand Down

0 comments on commit 58becc2

Please sign in to comment.