Recreate station screen with ReactJS

This commit is contained in:
2024-01-28 20:06:55 +01:00
parent 0890460ba7
commit 6317c900ef
24 changed files with 18813 additions and 12 deletions

View File

@ -69,7 +69,7 @@ class CalendarDateAdmin(admin.ModelAdmin):
class TransferAdmin(admin.ModelAdmin):
list_display = ('from_stop', 'to_stop', 'transfer_type', 'min_transfer_time',)
list_filter = ('transfer_type',)
search_fields = ('from_stop__stop_name', 'to_stop__stop_name',)
search_fields = ('from_stop__name', 'to_stop__name',)
autocomplete_fields = ('from_stop', 'to_stop',)

View File

@ -28,7 +28,7 @@ class Command(BaseCommand):
if not FeedInfo.objects.exists():
last_update_date = "1970-01-01"
else:
last_update_date = FeedInfo.objects.get().feed_version
last_update_date = FeedInfo.objects.get().version
for url in self.GTFS_FEEDS.values():
last_modified = requests.head(url).headers["Last-Modified"]