Ajout du param target sur les page vhc
This commit is contained in:
@@ -10,9 +10,9 @@ from vehicles.models import *
|
|||||||
@xframe_options_exempt
|
@xframe_options_exempt
|
||||||
def view_vhc(request):
|
def view_vhc(request):
|
||||||
if not "target" in request.GET.keys():
|
if not "target" in request.GET.keys():
|
||||||
target = "__self"
|
target = "_self"
|
||||||
else:
|
else:
|
||||||
target = "__blank"
|
target = "_blank"
|
||||||
|
|
||||||
template = loader.get_template("vhc/vhc.html")
|
template = loader.get_template("vhc/vhc.html")
|
||||||
a_vhc = Vehicles.objects.all().order_by("nStatus","nOrder")
|
a_vhc = Vehicles.objects.all().order_by("nStatus","nOrder")
|
||||||
|
Reference in New Issue
Block a user