Files
postgres-web/pgweb/contributors/views.py
Magnus Hagander fd37389a3b Replace NavContext and render_to_response with render_pgweb
render_to_response does not work on newer django, so it needs to be
replaced. And using a speicfic context actually overcomplicates things,
it's easier to just use a wrapper function. For those cases where we
don't need NavContext, just use render() (the new shortcut function from
django), which also removes the need to use RequestContext.
2018-03-10 10:38:11 -05:00

10 lines
280 B
Python

from pgweb.util.contexts import render_pgweb
from models import ContributorType
def completelist(request):
contributortypes = list(ContributorType.objects.all())
return render_pgweb(request, 'community', 'contributors/list.html', {
'contributortypes': contributortypes,
})