old_contents: from django.shortcuts import render, get_object_or_404
  from .models import RegistroPlanAnual, CHOICES_MESES
  # Create your views here.
  
  
  def list_informe(request, template='admin/lista_informe_plan_anual.html'):
  	plan_anual = Componentes.objects.all()
  	return render(request, template, locals())
  
  def ver_informe(request, template='admin/ver_informe.html', pk=None):
  	proyecto = get_object_or_404(DatosGenerales, id=pk)
  	meses = CHOICES_MESES
  	informe = RegistroPlanAnual.objects.filter(proyecto__componente__id=pk)
  	return render(request, template, locals())
new_contents: from django.shortcuts import render, get_object_or_404
  from .models import RegistroPlanAnual, CHOICES_MESES, DatosGenerales
  # Create your views here.
  
  
  def list_informe(request, template='admin/lista_informe_plan_anual.html'):
  	plan_anual = Componentes.objects.all()
  	return render(request, template, locals())
  
  def ver_informe(request, template='admin/ver_informe.html', pk=None):
  	proyecto = get_object_or_404(DatosGenerales, id=pk)
  	meses = CHOICES_MESES
  	informe = RegistroPlanAnual.objects.filter(proyecto__id=pk)
  	return render(request, template, locals())
subject: fix error models