fix test id
[auf_rh_dae.git] / project / rh / views.py
index e6a2354..97c9fde 100644 (file)
@@ -210,7 +210,7 @@ def region_protected(model):
                 employe = get_employe_from_user(request.user)
                 q = Q(**{model.prefix_implantation: employe.implantation.region})
                 qs = model.objects.filter(q)
-                if id in [o.id for o in qs]:
+                if int(id) in [o.id for o in qs]:
                     return func(request, id)
             return redirect_interdiction(request)
         return wrapped