mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-18 08:51:30 +00:00
修改原因: 前端使用 Select2 组件渲染更新账号的表单页面时,会默认先创建 spm 值, 后端调用 get_object 方法时,使用的queryset,就是spm所对应的queryset, 而 detail=True, 查询的值是当前 account_id,不在 queryset 中, 所以会导致调用父类的 get_object 方法报错,对象找不到
13 lines
205 B
Python
13 lines
205 B
Python
# -*- coding: utf-8 -*-
|
|
#
|
|
|
|
from django.urls import path
|
|
|
|
from .. import api
|
|
|
|
app_name = 'common'
|
|
|
|
urlpatterns = [
|
|
path('resources/cache/', api.ResourcesIDCacheApi.as_view(), name='resources-cache'),
|
|
]
|