summaryrefslogtreecommitdiff
path: root/docs/topics
diff options
context:
space:
mode:
authormariatta <mariatta.wijaya@gmail.com>2026-04-03 11:44:02 -0700
committerJacob Walls <jacobtylerwalls@gmail.com>2026-04-07 15:38:35 -0400
commite2abe321a6f1370e05c1a89a742125c9eafcac8c (patch)
tree85bd11175bfa5e3e3cc9e7ccbb9c3af31cc37f4e /docs/topics
parent74e73dc1315d696330621a7f08310a2e87ea0eba (diff)
Fixed #37021 -- Added Permission.user_perm_str property.
For use in checking user permissions via has_perm(). Co-authored-by: 사재혁 <jaehyuck.sa.dev@gmail.com>
Diffstat (limited to 'docs/topics')
-rw-r--r--docs/topics/auth/default.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt
index 77888febb3..83925d009f 100644
--- a/docs/topics/auth/default.txt
+++ b/docs/topics/auth/default.txt
@@ -243,6 +243,15 @@ to test for basic permissions you should use:
The :class:`~django.contrib.auth.models.Permission` model is rarely accessed
directly.
+The :class:`~django.contrib.auth.models.Permission` model provides a helper
+property, :attr:`~django.contrib.auth.models.Permission.user_perm_str`,
+that returns the string representation that can be used to check permission
+using the :meth:`~django.contrib.auth.models.User.has_perm` method.
+
+.. versionchanged:: 6.1
+
+ The ``user_perm_str`` property was added.
+
Groups
------