From 2de652891a60b78d980692ef1c6eefc23ed04cde Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 2 Jul 2012 14:36:07 +0530 Subject: [PATCH] depot / bus type not required in admin --- chaloBEST/mumbai/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chaloBEST/mumbai/models.py b/chaloBEST/mumbai/models.py index 445789f..13d1e75 100644 --- a/chaloBEST/mumbai/models.py +++ b/chaloBEST/mumbai/models.py @@ -321,9 +321,9 @@ class RouteSchedule(models.Model): busesAM = models.IntegerField(blank=True, null=True) busesN = models.IntegerField(blank=True, null=True) busesPM = models.IntegerField(blank=True, null=True) - bus_type = models.CharField(max_length=3, default="SD") + bus_type = models.CharField(max_length=3, default="SD", blank=True) depot_txt = models.CharField(max_length=16, blank=True) - depot = models.ForeignKey("Depot", null=True) + depot = models.ForeignKey("Depot", null=True, blank=True) first_from = models.TimeField(blank=True, null=True) last_from = models.TimeField(blank=True, null=True) first_to = models.TimeField(blank=True, null=True)