author | Madhusudan.C.S <madhusudancs@gmail.com> |
Mon, 14 Dec 2009 01:32:05 +0530 | |
changeset 76 | c1f967c47334 |
parent 1 | fda1c66b25f9 |
permissions | -rw-r--r-- |
from datetime import datetime from django.conf import settings from project.kiwipycon.sponsor.models import Sponsor def sponsors(request): sponsors = Sponsor.objects.all() gold_sponsors = sponsors.filter(type='gold') silver_sponsors = sponsors.filter(type='silver') schwag_sponsors = sponsors.filter(type='schwag') return { 'sponsors': {'gold': gold_sponsors, 'silver': silver_sponsors, 'schwag': schwag_sponsors} }