Fix settings imports
This commit is contained in:
@@ -9,11 +9,11 @@ from django.contrib.auth.models import AnonymousUser
|
||||
from django.contrib.contenttypes.models import ContentType
|
||||
from django.utils.encoding import smart_str
|
||||
|
||||
from .conf.settings import RECENT_COUNT
|
||||
|
||||
|
||||
class RecentSearchManager(Manager):
|
||||
def add_query_for_user(self, search_view):
|
||||
from .settings import RECENT_COUNT
|
||||
|
||||
query_dict = parse_qs(unquote_plus(smart_str(urlparse(search_view.request.get_full_path()).query)))
|
||||
|
||||
if query_dict and not isinstance(search_view.request.user, AnonymousUser):
|
||||
|
||||
@@ -7,7 +7,7 @@ from django.utils.translation import ugettext as _
|
||||
from haystack.forms import SearchForm
|
||||
|
||||
from ..models import RecentSearch
|
||||
from ..conf.settings import RECENT_COUNT
|
||||
from ..settings import RECENT_COUNT
|
||||
from ..icons import icon_search
|
||||
|
||||
register = Library()
|
||||
|
||||
Reference in New Issue
Block a user