Uniqueroute admin shows the from and to txt data as well

This commit is contained in:
Johnson Chetty 2012-03-31 11:07:18 +02:00
parent 4c4b52df96
commit ddf45b9fde

View File

@ -49,7 +49,7 @@ class FareAdmin(admin.ModelAdmin):
}
class UniqueRouteAdmin(admin.ModelAdmin):
list_display = ("route","from_stop", "to_stop","distance","is_full")
list_display = ("route","from_stop", "from_stop_txt", "to_stop", "to_stop_txt", "distance","is_full")
readonly_fields = ("route","distance","is_full")
search_fields = ("route__alias", "from_stop__name", "to_stop__name")
ordering = ('route',)