From cd295a2511f767bfdccd0099fa0143cfeacf38a6 Mon Sep 17 00:00:00 2001 From: Sanj Date: Thu, 16 Feb 2012 19:29:33 +0530 Subject: [PATCH] some fixes on search filter for areas and routes views --- chaloBEST/mumbai/models.py | 3 +++ chaloBEST/templates/areas.html | 8 ++++---- chaloBEST/templates/routes.html | 8 ++++---- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/chaloBEST/mumbai/models.py b/chaloBEST/mumbai/models.py index 7efee12..aaeee15 100644 --- a/chaloBEST/mumbai/models.py +++ b/chaloBEST/mumbai/models.py @@ -124,6 +124,9 @@ class Route(models.Model): distance = models.DecimalField(max_digits=3, decimal_places=1) stages = models.IntegerField() + def get_absolute_url(self): + return "/route/%s/" % self.alias + def __unicode__(self): return self.alias diff --git a/chaloBEST/templates/areas.html b/chaloBEST/templates/areas.html index c08815a..50e0ffb 100644 --- a/chaloBEST/templates/areas.html +++ b/chaloBEST/templates/areas.html @@ -7,9 +7,9 @@ {% block head %}