remotes/origin/mitri4
spacenergy 10 years ago
parent 39a0e41994
commit e6fd77fe0a
  1. 8
      store/views.py

@ -177,9 +177,11 @@ class ProductView(CategoryBaseView, DetailView):
for i in ranee:
#import pdb; pdb.set_trace()
if kwargs and i != kwargs['object'].slug:
p = Product.objects.get(slug=i)
if p not in retval['ranee']:
retval['ranee'].append(p)
try:
p = Product.objects.get(slug=i)
if p not in retval['ranee']:
retval['ranee'].append(p)
except: pass
#import pdb;pdb.set_trace()
if retval['ranee']:
retval['ranee'] = retval['ranee'][::-1][:4]

Loading…
Cancel
Save