products = Product.objects.filter(translations__title__contains=request.POST['text'])[:10]
data = []
for product in products:
data.append({'id': product.id, 'fields': {'title': product.title, 'alias': product.alias}})
return HttpResponse(json.JSONEncoder().encode(data))
sanjar@sanjar-All-Series:~/PhotoShopCS6$ sudo apt-get install wine1.7 winetricks
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package wine1.7 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
wine1.8:i386 wine1.8
E: Package 'wine1.7' has no installation candidate