src/hdalab/views/profile.py
changeset 296 c69dfb9d410e
parent 295 af29252631ac
child 297 0a742e5a25aa
--- a/src/hdalab/views/profile.py	Thu Jul 17 15:39:28 2014 +0200
+++ b/src/hdalab/views/profile.py	Thu Jul 17 16:47:29 2014 +0200
@@ -23,13 +23,13 @@
 #         now = datetime.utcnow().isoformat()
 #         
 #         rk = Renkan()
-#         rk.rk_id = now
+#         rk.rk_id = unicode(uuid.uuid1())
 #         rk.owner = self.request.user
 #         rk.content = '{"parrot":"dead"}'
 #         rk.title = now
 #         rk.save()
         
-        context['renkan_list'] = Renkan.objects.all()
+        context['renkan_list'] = Renkan.objects.all().order_by("-modification_date")
         
         #now = datetime.utcnow()
         #context['renkan_list'] = [
@@ -38,5 +38,6 @@
         #]
         
         return context
+
         
     
\ No newline at end of file