[Oi-commits] r1151 - trunk/profile
oi-commits at pardus.org.tr
oi-commits at pardus.org.tr
Fri Mar 21 15:00:08 EET 2008
Author: jnmbk
Date: Fri Mar 21 15:00:08 2008
New Revision: 1151
Modified:
trunk/profile/views.py
Log:
working petition in profile
Modified: trunk/profile/views.py
=================================================================
--- trunk/profile/views.py (original)
+++ trunk/profile/views.py Fri Mar 21 15:00:08 2008
@@ -19,6 +19,7 @@
from oi.profile.models import Profile, RegisterForm, ProfileEditForm, LostPassword, LostPasswordForm, ChangePasswordForm
from oi.st.wrappers import render_response
+from oi.petition.models import Petitioner
@login_required
def user_dashboard(request):
@@ -70,6 +71,8 @@
def user_profile(request, name):
info = get_object_or_404(User, username=name)
+ numberofpetitioners = Petitioner.objects.filter(is_active=True).count()
+ petitionpercent = numberofpetitioners / 30
if not info.is_active:
del info
return render_response(request, 'user/profile.html', locals())
More information about the Oi-commits
mailing list