Explorar el Código

Feature: Add url-filed name for DRF

pull/139/head
winkidney hace 5 años
padre
commit
f9e74f2ef7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      pinry/settings/base.py

+ 1
- 1
pinry/settings/base.py Ver fichero

@@ -150,7 +150,7 @@ REST_FRAMEWORK = {
# Use Django's standard `django.contrib.auth` permissions,
# or allow read-only access for unauthenticated users.
'DEFAULT_PERMISSION_CLASSES': [
'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly'
'rest_framework.permissions.IsAuthenticatedOrReadOnly'
],
'DEFAULT_FILTER_BACKENDS': (
'django_filters.rest_framework.DjangoFilterBackend',


Cargando…
Cancelar
Guardar