make from_stop, to_stop editable in unique route admin
This commit is contained in:
parent
fbdc453faf
commit
b26e60cecc
|
@ -50,7 +50,7 @@ class FareAdmin(admin.ModelAdmin):
|
||||||
|
|
||||||
class UniqueRouteAdmin(admin.ModelAdmin):
|
class UniqueRouteAdmin(admin.ModelAdmin):
|
||||||
list_display = ("route","from_stop", "to_stop","distance","is_full")
|
list_display = ("route","from_stop", "to_stop","distance","is_full")
|
||||||
readonly_fields = ("route","from_stop", "to_stop","distance","is_full")
|
readonly_fields = ("route","distance","is_full")
|
||||||
search_fields = ("route__alias", "from_stop__name", "to_stop__name")
|
search_fields = ("route__alias", "from_stop__name", "to_stop__name")
|
||||||
ordering = ('route',)
|
ordering = ('route',)
|
||||||
list_per_page = 50
|
list_per_page = 50
|
||||||
|
|
Loading…
Reference in New Issue
Block a user