예제 #1
0
파일: views.py 프로젝트: Empia/cabot
def update_service(request, pk):
  """Updates an individual service"""
  _update_service(service_or_id=pk)
  return HttpResponseRedirect(reverse_lazy('services'))
예제 #2
0
def update_service(request, pk):
  """Updates an individual service"""
  _update_service(service_or_id=pk)
  return HttpResponseRedirect(reverse('service', kwargs={'pk': pk}))