Prepare code for Eurostar/Trenitalia France/RENFE/ÖBB data input
This commit is contained in:
@ -44,7 +44,7 @@ class AgencyAdmin(admin.ModelAdmin):
|
||||
@admin.register(Stop)
|
||||
class StopAdmin(admin.ModelAdmin):
|
||||
list_display = ('name', 'id', 'lat', 'lon', 'location_type',)
|
||||
list_filter = ('location_type',)
|
||||
list_filter = ('location_type', 'transport_type',)
|
||||
search_fields = ('name', 'id',)
|
||||
ordering = ('name',)
|
||||
autocomplete_fields = ('parent_station',)
|
||||
@ -52,8 +52,8 @@ class StopAdmin(admin.ModelAdmin):
|
||||
|
||||
@admin.register(Route)
|
||||
class RouteAdmin(admin.ModelAdmin):
|
||||
list_display = ('long_name', 'short_name', 'id', 'type',)
|
||||
list_filter = ('type',)
|
||||
list_display = ('short_name', 'long_name', 'id', 'type',)
|
||||
list_filter = ('transport_type', 'type', 'agency',)
|
||||
search_fields = ('long_name', 'short_name', 'id',)
|
||||
ordering = ('long_name',)
|
||||
autocomplete_fields = ('agency',)
|
||||
|
Reference in New Issue
Block a user