|
|
@@ -269,7 +269,8 @@ class Equip_Show_List(ListView):
|
|
|
class Equip_Show_Detail(ListView):
|
|
|
def get(self,request):
|
|
|
e_id = request.GET.get("id")
|
|
|
- product = Product.objects.get(id=e_id)
|
|
|
+ if e_id:
|
|
|
+ product = Product.objects.get(id=e_id)
|
|
|
e_name = request.GET.get("name")
|
|
|
if e_name:
|
|
|
product = Product.objects.get(title=e_name)
|