Skip to content

Commit

Permalink
rf#140 Fix redirects mutlideps
Browse files Browse the repository at this point in the history
  • Loading branch information
duker33 committed Jul 3, 2018
1 parent a861849 commit bccd2b2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion shopelectro/admin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.contrib import admin
from django.contrib.admin.widgets import FilteredSelectMultiple
from redirects.models import Redirect
from django.contrib.redirects.models import Redirect
from django.db import models as django_models
from django.urls import reverse
from django.utils.html import format_html
Expand Down
3 changes: 2 additions & 1 deletion shopelectro/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
'django.contrib.contenttypes',
'django.contrib.auth',
'django.contrib.messages',
'django.contrib.redirects',
'django.contrib.sessions',
'django.contrib.sitemaps',
'django.contrib.sites',
Expand All @@ -61,11 +62,11 @@
'sorl.thumbnail',
'django_select2',
'images',
'refarm_redirects',
'pages',
'catalog',
'search',
'ecommerce',
'refarm_redirects',
'shopelectro',
]

Expand Down
3 changes: 1 addition & 2 deletions shopelectro/tests/tests_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
They all should be using Django's TestClient.
"""
import json
import unittest
from functools import partial
from itertools import chain
from operator import attrgetter
Expand All @@ -14,13 +13,13 @@

from bs4 import BeautifulSoup
from django.conf import settings
from django.contrib.redirects.models import Redirect
from django.contrib.sites.models import Site
from django.db.models import Q
from django.http import HttpResponse
from django.test import TestCase
from django.urls import reverse
from django.utils.translation import ugettext as _
from redirects.models import Redirect

from shopelectro.models import Category, Product, Tag, TagGroup, TagQuerySet, serialize_tags_to_url
from shopelectro.views.service import generate_md5_for_ya_kassa, YANDEX_REQUEST_PARAM
Expand Down

0 comments on commit bccd2b2

Please sign in to comment.