[Oi-commits] r1484 - trunk/forum
oi-commits at pardus.org.tr
oi-commits at pardus.org.tr
Tue Jun 17 20:52:42 EEST 2008
Author: jnmbk
Date: Tue Jun 17 20:52:42 2008
New Revision: 1484
Modified:
trunk/forum/views.py
Log:
fix
Modified: trunk/forum/views.py
=================================================================
--- trunk/forum/views.py (original)
+++ trunk/forum/views.py Tue Jun 17 20:52:42 2008
@@ -809,10 +809,13 @@
return HttpResponseRedirect(topic.get_absolute_url())
else:
# convert returned value "day/month/year"
- get = str(poll.end_date)
- get = get.split("-")
-
- end_date = "%s/%s/%s" % (get[2], get[1], get[0])
+ if poll.end_date:
+ get = str(poll.end_date)
+ get = get.split("-")
+
+ end_date = "%s/%s/%s" % (get[2], get[1], get[0])
+ else:
+ end_date=None
initial = {
"question": poll.question,
"allow_changing_vote": poll.allow_changing_vote,
More information about the Oi-commits
mailing list