Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # esta es mi vista
- from django.shortcuts import get_or_404
- def eliminarTipoEmpleado(request, id):
- tipoempleado = get_or_404(TipoEmpleado, id = int(id))
- tipoempleado.delete()
- return HttpResponseRedirect('/tipoempleado/1/')
Advertisement
Add Comment
Please, Sign In to add comment