Changeset 5b94b6c in ecoalba
- Timestamp:
- Apr 28, 2014, 10:24:43 AM (10 years ago)
- Branches:
- master
- Children:
- adcfc71
- Parents:
- a822a37
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
apps/mip/views.py
r6847837 r5b94b6c 1 # Create your views here. 1 from django.shortcuts import * 2 from django.contrib.auth.decorators import login_required 3 from django.http import HttpResponse, HttpResponseRedirect 4 from mip.forms import * 5 from mip.models import * 6 7 @login_required 8 def mip(request): 9 if request.method == 'POST': 10 formu = FormularioMip(request.POST) 11 if formu.is_valid(): 12 pais = formu.cleaned_data['pais'] 13 act = Actividades.objects.filter(codigo_pais=pais) 14 else: 15 act=[] 16 formu = FormularioMip() 17 return render_to_response('mip/mip.html',{'FormularioMip':formu, 'act':act}, context_instance = RequestContext(request))
Note: See TracChangeset
for help on using the changeset viewer.