1
0
mirror of https://github.com/etesync/server synced 2024-12-28 18:28:07 +00:00
etesync-server/django_etebase/utils.py
2020-07-13 15:39:04 +03:00

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