X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/a9226097c8eea0591fd3249f62a71becc6d2be93..87288eb538ed6e1dfa7029fba5a545e01d0b24ea:/src/wolnelektury/settings/contrib.py diff --git a/src/wolnelektury/settings/contrib.py b/src/wolnelektury/settings/contrib.py index d410ddd89..bd40547fc 100644 --- a/src/wolnelektury/settings/contrib.py +++ b/src/wolnelektury/settings/contrib.py @@ -1,9 +1,11 @@ -# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. -# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Wolne Lektury. See NOTICE for more information. # HONEYPOT_FIELD_NAME = 'miut' PAGINATION_INVALID_PAGE_RAISES_404 = True THUMBNAIL_QUALITY = 95 +THUMBNAIL_ALTERNATIVE_RESOLUTIONS = [2] +THUMBNAIL_PRESERVE_FORMAT = True MODELTRANSLATION_DEFAULT_LANGUAGE = 'pl' MODELTRANSLATION_PREPOPULATE_LANGUAGE = 'pl' @@ -26,9 +28,13 @@ REST_FRAMEWORK = { 'api.renderers.LegacyXMLRenderer', ), 'DEFAULT_AUTHENTICATION_CLASSES': ( + 'api.drf_auth.WLTokenAuthentication', 'api.drf_auth.PistonOAuthAuthentication', 'rest_framework.authentication.SessionAuthentication', - ) + ), + 'DEFAULT_PAGINATION_CLASS': 'api.pagination.WLLimitOffsetPagination', + 'PAGE_SIZE': 10, + 'DEFAULT_VERSIONING_CLASS': 'rest_framework.versioning.NamespaceVersioning', } @@ -37,13 +43,6 @@ DEBUG_TOOLBAR_CONFIG = { } -HAYSTACK_CONNECTIONS = { - 'default': { - 'ENGINE': 'haystack.backends.simple_backend.SimpleEngine', - }, -} - - FORMS_BUILDER_USE_SITES = False FORMS_BUILDER_EDITABLE_FIELD_MAX_LENGTH = True FORMS_BUILDER_EDITABLE_SLUGS = True