0001-add-hobo-rest_authentication-class-to-service-9974.patch
debian/debian_config_common.py | ||
---|---|---|
196 | 196 |
BROKER_TASK_EXPIRES = 120 |
197 | 197 | |
198 | 198 |
STATICS_HASH_COUNTER = '/var/lib/publik/statics-counter' |
199 | ||
200 | ||
201 |
if 'rest_framework' in INSTALLED_APPS: |
|
202 |
if 'REST_FRAMEWORK' not in globals(): |
|
203 |
REST_FRAMEWORK = {} |
|
204 | ||
205 |
if 'DEFAULT_AUTHENTICATION_CLASSES' in REST_FRAMEWORK: |
|
206 |
REST_FRAMEWORK['DEFAULT_AUTHENTICATION_CLASSES'] += ('hobo.rest_authentication.PublikAuthentication',) |
|
207 |
else: |
|
208 |
REST_FRAMEWORK['DEFAULT_AUTHENTICATION_CLASSES'] = ('hobo.rest_authentication.PublikAuthentication',) |
|
209 | ||
199 |
- |