Files
ihrm/notifications/settings.py
Ashwanth Balakrishnan 58be33a8d7 Added Pre-Commit Hooks (#175)
* Added pre commit hook

* Run pre commit hook on all files

---------

Co-authored-by: Horilla <131998600+horilla-opensource@users.noreply.github.com>
2024-05-07 12:23:36 +05:30

21 lines
403 B
Python

""" Django notifications settings file """
# -*- coding: utf-8 -*-
from django.conf import settings
CONFIG_DEFAULTS = {
"PAGINATE_BY": 20,
"USE_JSONFIELD": False,
"SOFT_DELETE": False,
"NUM_TO_FETCH": 10,
}
def get_config():
user_config = getattr(settings, "DJANGO_NOTIFICATIONS_CONFIG", {})
config = CONFIG_DEFAULTS.copy()
config.update(user_config)
return config