silly error - changed route to foreignkey, updated admin

This commit is contained in:
Sanj 2012-02-28 20:33:18 +05:30
parent e345ea7a63
commit 08946256bd
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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();