X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/5aa13410812d3fc4b35c039bdc3f0a2edc5185a1..6b87b2b7014a0441f5f696a35127f12a89e48d2e:/src/wolnelektury/settings/contrib.py?ds=sidebyside diff --git a/src/wolnelektury/settings/contrib.py b/src/wolnelektury/settings/contrib.py index daa119d76..2fed2f3ee 100644 --- a/src/wolnelektury/settings/contrib.py +++ b/src/wolnelektury/settings/contrib.py @@ -15,7 +15,6 @@ MODELTRANSLATION_PREPOPULATE_LANGUAGE = 'pl' MIGRATION_MODULES = { 'getpaid': 'wolnelektury.migrations.getpaid', - 'piston': 'wolnelektury.migrations.piston', } GETPAID_ORDER_DESCRIPTION = "{% load funding_tags %}{{ order|sanitize_payment_title }}" @@ -45,6 +44,10 @@ MIGDAL_TYPES = ( EntryType('event', _('events'), commentable=False), ) +MIGDAL_OPTIONAL_LANGUAGES = ( + ('en', u'English'), +) + REST_FRAMEWORK = { "DEFAULT_RENDERER_CLASSES": ( 'rest_framework.renderers.JSONRenderer', @@ -52,5 +55,6 @@ REST_FRAMEWORK = { 'api.renderers.LegacyXMLRenderer', ), 'DEFAULT_AUTHENTICATION_CLASSES': ( + 'api.drf_auth.PistonOAuthAuthentication', ) }