Fix IDFM and CTS line display
This commit is contained in:
@ -514,14 +514,14 @@ class Trip(models.Model):
|
||||
|
||||
@property
|
||||
def train_type(self):
|
||||
if self.gtfs_feed.code == "FR-IDF-TN":
|
||||
if self.gtfs_feed.code == "FR-IDF-IDFM":
|
||||
return self.route.short_name
|
||||
else:
|
||||
return self.origin.stop_type
|
||||
|
||||
@property
|
||||
def train_number(self):
|
||||
if self.gtfs_feed.code == "FR-IDF-TN":
|
||||
if self.gtfs_feed.code == "FR-IDF-IDFM":
|
||||
return self.short_name
|
||||
else:
|
||||
return self.headsign
|
||||
|
Reference in New Issue
Block a user