瀏覽代碼

Feature: Add url-filed name for DRF

pull/139/head
winkidney 5 年之前
父節點
當前提交
f9e74f2ef7
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      pinry/settings/base.py

+ 1
- 1
pinry/settings/base.py 查看文件

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


Loading…
取消
儲存