X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/a7c64b2ae44b54daac2d4bce4dc0c2d675e04504..e23ceedf469dc115c335f497c6c3e0834cda0ebc:/src/catalogue/views.py diff --git a/src/catalogue/views.py b/src/catalogue/views.py index 80e97271..2ed4216d 100644 --- a/src/catalogue/views.py +++ b/src/catalogue/views.py @@ -384,10 +384,10 @@ def publish_collection(request, pk): @login_required def woblink_autocomplete(request, category): - shop = depot.models.Shop.objects.filter(shop='woblink').first() - if shop is None: + site = depot.models.Site.objects.filter(site_type='woblink').first() + if site is None: return JsonResponse({}) - woblink = shop.get_publisher() + woblink = site.get_publisher() term = request.GET.get('term') if not term: return JsonResponse({})