Skip to content

Instantly share code, notes, and snippets.

@fitoria
Created April 28, 2009 03:36
Show Gist options
  • Save fitoria/102915 to your computer and use it in GitHub Desktop.
Save fitoria/102915 to your computer and use it in GitHub Desktop.
def vista(request):
foo=OneModel.objects.all()
bar=Othermodel.objects.all()
return render_to_response('foo.html', {'foo': foo, 'bar': bar})
def vista(request):
foo=OneModel.objects.all()
bar=Othermodel.objects.all()
dict = {'foo': foo, 'bar': bar}
return render_to_response('foo.html', dict)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment