We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 083afd8 commit 6027479Copy full SHA for 6027479
api_permission/apps.py
@@ -3,4 +3,4 @@
3
4
class AuthConfig(AppConfig):
5
name = 'api_permission'
6
- verbose_name = '权限管理'
+ verbose_name = 'api permission'
api_permission/models.py
@@ -7,9 +7,9 @@ class APIPermissionModel(models.Model):
7
GET = 'GET'
8
ALL = 'ALL'
9
METHODS = (
10
- (POST, "创建/编辑/删除"),
11
- (GET, "查看"),
12
- (ALL, "所有"),
+ (POST, "create/edit/delete"),
+ (GET, "readonly"),
+ (ALL, "all"),
13
)
14
15
pattern = models.CharField("API正则", max_length=128)
0 commit comments