remotes/origin/mitri4
spacenergy 10 years ago
parent b0a672a12b
commit c87e612e26
  1. 3
      store/views.py

@ -175,7 +175,8 @@ class ProductView(CategoryBaseView, DetailView):
#ranee.pop(kwargs['object'].slug)
retval['ranee'] = []
for i in ranee:
if i != kwargs['object'].slug:
#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)

Loading…
Cancel
Save