From 6aa548dba3136b5184753931eb20cda6a0e2f917 Mon Sep 17 00:00:00 2001 From: Sanj Date: Fri, 5 Oct 2012 19:41:25 +0530 Subject: [PATCH] strip names --- chaloBEST/mumbai/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chaloBEST/mumbai/models.py b/chaloBEST/mumbai/models.py index 1851bfd..de6d16a 100644 --- a/chaloBEST/mumbai/models.py +++ b/chaloBEST/mumbai/models.py @@ -212,7 +212,7 @@ class Stop(models.Model): a.delete() for a in data['alternative_names'].split(","): alt_name = AlternativeName() - alt_name.name = a + alt_name.name = a.strip() alt_name.typ = 'common' alt_name.content_object = self alt_name.save()