More API views migrated.
[wolnelektury.git] / src / wolnelektury / settings / contrib.py
index de64990..a25ef72 100644 (file)
@@ -44,3 +44,14 @@ MIGDAL_TYPES = (
     EntryType('info', _('info'), commentable=False),
     EntryType('event', _('events'), commentable=False),
 )
+
+REST_FRAMEWORK = {
+    "DEFAULT_RENDERER_CLASSES": (
+        'rest_framework.renderers.JSONRenderer',
+        'rest_framework.renderers.BrowsableAPIRenderer',
+        'api.renderers.LegacyXMLRenderer',
+    ),
+    'DEFAULT_AUTHENTICATION_CLASSES': (
+        'api.drf_auth.PistonOAuthAuthentication',
+    )
+}