Pārlūkot izejas kodu

Feature: Add url-filed name for DRF

pull/139/head
winkidney pirms 5 gadiem
vecāks
revīzija
f9e74f2ef7
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      pinry/settings/base.py

+ 1
- 1
pinry/settings/base.py Parādīt failu

@@ -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',


Notiek ielāde…
Atcelt
Saglabāt