summaryrefslogtreecommitdiff
path: root/devel/views.py
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2008-03-08 00:19:58 -0800
committereliott <eliott@cactuswax.net>2008-03-08 00:19:58 -0800
commit8019319a4fe5f52779f9f2531e3aa24aacbe43f5 (patch)
tree7ddac0cd653680d8df06127d9c0622201a2e1145 /devel/views.py
parent9b7b5122544283fc32d81d785e94c5f4aacc0109 (diff)
renamed donator model to donor.
remove category model
Diffstat (limited to 'devel/views.py')
-rw-r--r--devel/views.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/devel/views.py b/devel/views.py
index b073d29c..741b869a 100644
--- a/devel/views.py
+++ b/devel/views.py
@@ -4,7 +4,7 @@ from django.contrib.auth.models import User
from django.core import validators
from archweb_dev.main.utils import render_response, validate
from archweb_dev.main.models import Package, Repo, Todolist, TodolistPkg
-from archweb_dev.main.models import UserProfile, News, Donator, Mirror
+from archweb_dev.main.models import UserProfile, News, Donor, Mirror
from django.http import HttpResponse
from django.template import Context, loader
@@ -96,12 +96,12 @@ def developers(request):
return render_response(request, 'devel/developers.html', {'devs':devs})
def donate(request):
- donor_count = Donator.objects.count()
+ donor_count = Donor.objects.count()
splitval = donor_count / 4
- slice1 = Donator.objects.all()[:splitval]
- slice2 = Donator.objects.all()[(splitval):(splitval*2)]
- slice3 = Donator.objects.all()[(splitval*2):(donor_count-splitval)]
- slice4 = Donator.objects.all()[(donor_count-splitval):donor_count]
+ slice1 = Donor.objects.all()[:splitval]
+ slice2 = Donor.objects.all()[(splitval):(splitval*2)]
+ slice3 = Donor.objects.all()[(splitval*2):(donor_count-splitval)]
+ slice4 = Donor.objects.all()[(donor_count-splitval):donor_count]
return render_response(request, 'devel/donate.html',
{'slice1':slice1,'slice2':slice2,'slice3':slice3,'slice4':slice4})