13 lines
285 B
Python
13 lines
285 B
Python
from django.contrib.auth import get_user_model
|
|
from . import app_settings
|
|
|
|
|
|
User = get_user_model()
|
|
|
|
|
|
def get_user_queryset(queryset, view):
|
|
custom_func = app_settings.GET_USER_QUERYSET
|
|
if custom_func is not None:
|
|
return custom_func(queryset, view)
|
|
return queryset
|