首页 \ 问答 \ 在django管理页面中,某些表不在可用权限列表中(In django admin page, some table are not in the available permission list)

在django管理页面中,某些表不在可用权限列表中(In django admin page, some table are not in the available permission list)

我的超级用户可以正确编辑所有表和auth用户/组。 我想设置一些功能较少的用户,他们只能编辑一些表。 但我发现并非所有表都列在可用的权限列表中。 任何想法?


My super user can edit all tables and auth user/group correctly. I would like to setup some less power user, who can only edit some tables. but i found not all tables are listed in the available permission list. Any idea?


原文:https://stackoverflow.com/questions/16975988
更新时间:2023-01-21 06:01

最满意答案

好的,在这里你应该使用Html.Raw

...
url: '@Html.Raw(pin.Globo.Url)',
...

OK, here you should unescape with Html.Raw :

...
url: '@Html.Raw(pin.Globo.Url)',
...

相关问答

更多
  • 您有一个表单中的按钮,其作用类似于提交按钮,这会导致页面刷新。 如果您没有为按钮指定类型,则默认为submit按钮,该按钮会导致表单提交并重新加载页面。 将按钮标记更改为: You have a button in a form that's acting like a submit button, that's causing the page to refresh. If you d ...
  • 一个相关的SO 问题给了我答案。 我需要更改控制器的返回值 return Json(serializedData, JsonRequestBehavior.AllowGet); 至 return Content(serializedData, "application/json"); 因为JsonResult也在序列化序列化数据。 A related SO question gave me the answer. I needed to change the return in my controlle ...
  • 如果您正在寻找通过获取地址在地图上放置标记,那么您需要先查看地理编码服务。 示例和描述已有详细记录,因此我不提供与之相关的任何代码。 地理编码服务 上面提供的示例将从HTML输入元素获取输入。 既然您的问题是从Asp.net TextBox获取输入,那么您可以这样做 - 假设你有 -
    我已经找到了一种方法,通过在javascript中创建一个全局变量并保留地图信息,以便以后再次调用它。 为此,我刚刚在顶部添加了一个var“map”。 You can set your JavaScript variables from your Model properties inside a script tag like this.