Guest User

Untitled

a guest
Mar 28th, 2011
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. # esta es mi vista
  2.  
  3. from django.shortcuts import get_or_404
  4.  
  5. def eliminarTipoEmpleado(request, id):
  6.     tipoempleado = get_or_404(TipoEmpleado, id = int(id))
  7.     tipoempleado.delete()
  8.     return HttpResponseRedirect('/tipoempleado/1/')
Advertisement
Add Comment
Please, Sign In to add comment