fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix demo retries
[redakcja.git]
/
src
/
catalogue
/
views.py
diff --git
a/src/catalogue/views.py
b/src/catalogue/views.py
index
80e9727
..
2ed4216
100644
(file)
--- 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):
@login_required
def woblink_autocomplete(request, category):
- s
hop = depot.models.Shop.objects.filter(shop
='woblink').first()
- if s
hop
is None:
+ s
ite = depot.models.Site.objects.filter(site_type
='woblink').first()
+ if s
ite
is None:
return JsonResponse({})
return JsonResponse({})
- woblink = s
hop
.get_publisher()
+ woblink = s
ite
.get_publisher()
term = request.GET.get('term')
if not term:
return JsonResponse({})
term = request.GET.get('term')
if not term:
return JsonResponse({})