app settings: rename the get user queryset func setting name.

This commit is contained in:
Tom Hacohen
2020-07-13 16:08:46 +03:00
parent 46b4f08afa
commit e41f8455f2
2 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ User = get_user_model()
def get_user_queryset(queryset, view):
custom_func = app_settings.GET_USER_QUERYSET
custom_func = app_settings.GET_USER_QUERYSET_FUNC
if custom_func is not None:
return custom_func(queryset, view)
return queryset