浏览代码

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


正在加载...
取消
保存