|
@@ -155,6 +155,10 @@ class LoanInline(admin.TabularInline):
|
|
|
|
|
|
show_change_link = True
|
|
|
|
|
|
+ def get_queryset(self, request):
|
|
|
+ qs = super(LoanInline, self).get_queryset(request)
|
|
|
+ return qs.order_by('-loan_date_end')
|
|
|
+
|
|
|
def has_add_permission(self, request, obj=None):
|
|
|
return False
|
|
|
|