Created
November 24, 2011 19:56
-
-
Save gilsondev/1392160 to your computer and use it in GitHub Desktop.
View do diagnostico
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf8 -*- | |
from django.shortcuts import render_to_response | |
from django.template import RequestContext | |
from sigi.apps.diagnosticos.models import Diagnostico | |
def lista(request): | |
"""Consulta os diagnosticos do servidor logado, | |
que contenham o status de não publicado. | |
""" | |
diagnosticos = Diagnostico.objects.all() | |
context = RequestContext(request, {'diagnosticos': diagnosticos}) | |
return render_to_response('diagnosticos/diagnosticos_list.html', context) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment