silly error - changed route to foreignkey, updated admin
This commit is contained in:
parent
e345ea7a63
commit
08946256bd
|
@ -51,7 +51,7 @@ class FareAdmin(admin.ModelAdmin):
|
|||
class UniqueRouteAdmin(admin.ModelAdmin):
|
||||
list_display = ("route","from_stop", "to_stop","distance","is_full")
|
||||
readonly_fields = ("route","from_stop", "to_stop","distance","is_full")
|
||||
search_fields = ("route", "from_stop__name", "to_stop__name")
|
||||
search_fields = ("route__alias", "from_stop__name", "to_stop__name")
|
||||
ordering = ('route',)
|
||||
list_per_page = 50
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ var API_BASE = "/1.0/",
|
|||
var $li = $('<div />')
|
||||
.addClass("listItem")
|
||||
.appendTo($list);
|
||||
var $txt = $('<span >').addClass("listItemText").text(v).appendTo($li);
|
||||
var $txt = $('<span />').addClass("listItemText").text(v).appendTo($li);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
@ -51,6 +51,7 @@ var API_BASE = "/1.0/",
|
|||
$('.selectedListItem').find(".stopsList").hide().remove();
|
||||
$('.selectedListItem').removeClass("selectedListItem");
|
||||
$target.addClass("selectedListItem");
|
||||
|
||||
if ($target.data("hasList")) {
|
||||
var $stopsList = $target.find(".stopsList");
|
||||
$stopsList.slideDown();
|
||||
|
|
Loading…
Reference in New Issue
Block a user