[Oi-commits] r1319 - trunk/forum

oi-commits at pardus.org.tr oi-commits at pardus.org.tr
Thu May 1 11:30:56 EEST 2008


Author: jnmbk
Date: Thu May  1 11:30:56 2008
New Revision: 1319

Modified:
   trunk/forum/views.py
Log:
also show formatted date

Modified: trunk/forum/views.py
=================================================================
--- trunk/forum/views.py	(original)
+++ trunk/forum/views.py	Thu May  1 11:30:56 2008
@@ -205,7 +205,7 @@
             post = get_object_or_404(Post, pk=quote_id)
 
             if post in topic.post_set.all():
-                form = PostForm(auto_id=True, initial={'text': '[quote <b>%s</b> kullanıcısından alıntı...]%s[/quote]' % (post.author, post.text)})
+                form = PostForm(auto_id=True, initial={'text': '[quote <b>%s</b>, %s tarihinde:]%s[/quote]' % (post.author, post.edited.strftime("%d/%m/%Y %H:%M"), post.text)})
             # if quote doesn't belong to this topic, just redirect to what user gets :)
             else:
                 return HttpResponseRedirect(post.get_absolute_url())


More information about the Oi-commits mailing list