Skip to content

Commit d601fde

Browse files
committed
fix: recorsive imports
1 parent 39b6049 commit d601fde

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

basxbread/utils/urls.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from django.apps import apps
1010
from django.conf import settings
1111
from django.contrib.auth.decorators import user_passes_test
12-
from django.contrib.contenttypes.fields import GenericForeignKey
1312
from django.db import models
1413
from django.http import HttpResponse
1514
from django.urls import path as djangopath
@@ -18,7 +17,6 @@
1817
from django.utils.http import urlencode
1918
from django.utils.text import format_lazy
2019
from djangoql.exceptions import DjangoQLParserError
21-
from guardian.shortcuts import get_objects_for_user
2220

2321
from .model_helpers import get_concrete_instance, permissionname
2422

@@ -375,6 +373,9 @@ def quicksearch(
375373
formatter=None,
376374
url=None,
377375
):
376+
from django.contrib.contenttypes.fields import GenericForeignKey
377+
from guardian.shortcuts import get_objects_for_user
378+
378379
from .. import layout
379380

380381
if isinstance(model, str):
@@ -390,6 +391,7 @@ def quicksearch(
390391
search_fields = [f.name for f in model._meta.get_fields()]
391392

392393
def view(request):
394+
393395
_limit = limit
394396
_order_by = order_by
395397
_result_fields = None

0 commit comments

Comments
 (0)