fix get_app_list
This commit is contained in:
@@ -37,13 +37,13 @@ class CustomFlatPageAdmin(FlatPageAdmin):
|
||||
|
||||
|
||||
# Set the ordering of models in Admin Dashboard
|
||||
def get_app_list(self, request):
|
||||
def get_app_list(self, request, app_label=None):
|
||||
"""
|
||||
Return a sorted list of all the installed apps that have been
|
||||
registered in this site.
|
||||
"""
|
||||
# Retrieve the original list
|
||||
app_dict = self._build_app_dict(request)
|
||||
app_dict = self._build_app_dict(request, app_label)
|
||||
app_list = sorted(app_dict.values(), key=lambda x: x["name"].lower())
|
||||
|
||||
# Sort the models customably within each app.
|
||||
|
||||
Reference in New Issue
Block a user