From 99bbf8ec16fca5eeec9d0ddad5f0a5ae169e4218 Mon Sep 17 00:00:00 2001
From: Jayaram Pai
Date: Wed, 23 Apr 2014 17:18:27 +0530
Subject: changed slick in index page

changed login:next_url
modified the forms.py for initial value
---
 website/models.py | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'website/models.py')

diff --git a/website/models.py b/website/models.py
index c280d2d..7a845c5 100644
--- a/website/models.py
+++ b/website/models.py
@@ -22,6 +22,9 @@ class Question(models.Model):
         user = User.objects.get(id=self.uid)
         return user.username
 
+    class Meta:
+        get_latest_by = "date_created"
+
 class QuestionVote(models.Model):
     uid = models.IntegerField()
     question = models.ForeignKey(Question)
-- 
cgit