2024-03-10 19:37:46 +05:30
|
|
|
""" Django notifications settings file """
|
|
|
|
|
|
2023-08-01 16:47:47 +05:30
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
from django.conf import settings
|
|
|
|
|
|
|
|
|
|
CONFIG_DEFAULTS = {
|
2024-03-10 19:37:46 +05:30
|
|
|
"PAGINATE_BY": 20,
|
|
|
|
|
"USE_JSONFIELD": False,
|
|
|
|
|
"SOFT_DELETE": False,
|
|
|
|
|
"NUM_TO_FETCH": 10,
|
2023-08-01 16:47:47 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_config():
|
2024-03-10 19:37:46 +05:30
|
|
|
user_config = getattr(settings, "DJANGO_NOTIFICATIONS_CONFIG", {})
|
2023-08-01 16:47:47 +05:30
|
|
|
|
|
|
|
|
config = CONFIG_DEFAULTS.copy()
|
|
|
|
|
config.update(user_config)
|
|
|
|
|
|
|
|
|
|
return config
|