擅长:python、mysql、java
<p>你可能也想要</p>
<ul>
<li>向组添加特定权限并使用所需的权限:<a href="https://docs.djangoproject.com/en/2.1/topics/auth/default/#the-permission-required-decorator" rel="nofollow noreferrer">https://docs.djangoproject.com/en/2.1/topics/auth/default/#the-permission-required-decorator</a></li>
</ul>
<p>或者</p>
<ul>
<li>测试用户是否在用户为\u的组中通过测试:<a href="https://docs.djangoproject.com/en/2.1/topics/auth/default/#django.contrib.auth.decorators.user_passes_test" rel="nofollow noreferrer">https://docs.djangoproject.com/en/2.1/topics/auth/default/#django.contrib.auth.decorators.user_passes_test</a></li>
</ul>