Files
postgres-web/pgweb/contributors/views.py
Magnus Hagander 90b758c247 A first very basic import.
Contains basic functionality, and an import of most of the static content
from the old site.

There is still plenty more to do...
2009-09-14 14:39:25 +02:00

16 lines
570 B
Python

from django.shortcuts import render_to_response, get_object_or_404
from django.http import HttpResponse, Http404, HttpResponseRedirect
from django.template import TemplateDoesNotExist, loader, Context
from django.contrib.auth.decorators import login_required
from pgweb.util.contexts import NavContext
from models import Contributor, ContributorType
def completelist(request):
contributortypes = list(ContributorType.objects.all())
return render_to_response('contributors/list.html', {
'contributortypes': contributortypes,
}, NavContext(request, 'community'))