mirror of
				https://github.com/django/django.git
				synced 2025-10-28 16:16:12 +00:00 
			
		
		
		
	[2.2.x] Clarified permission-related docs.
Backport of 632d4861dd from master
			
			
This commit is contained in:
		
				
					committed by
					
						 Carlton Gibson
						Carlton Gibson
					
				
			
			
				
	
			
			
			
						parent
						
							459f7c804d
						
					
				
				
					commit
					18211d0a4d
				
			| @@ -95,7 +95,7 @@ a set of optional permission related :ref:`authorization methods | |||||||
|  |  | ||||||
| The ``get_user`` method takes a ``user_id`` -- which could be a username, | The ``get_user`` method takes a ``user_id`` -- which could be a username, | ||||||
| database ID or whatever, but has to be the primary key of your user object -- | database ID or whatever, but has to be the primary key of your user object -- | ||||||
| and returns a user object. | and returns a user object or ``None``. | ||||||
|  |  | ||||||
| The ``authenticate`` method takes a ``request`` argument and credentials as | The ``authenticate`` method takes a ``request`` argument and credentials as | ||||||
| keyword arguments. Most of the time, it'll just look like this:: | keyword arguments. Most of the time, it'll just look like this:: | ||||||
|   | |||||||
| @@ -44,6 +44,7 @@ of these common problems have been implemented in third-party packages: | |||||||
| * Password strength checking | * Password strength checking | ||||||
| * Throttling of login attempts | * Throttling of login attempts | ||||||
| * Authentication against third-parties (OAuth, for example) | * Authentication against third-parties (OAuth, for example) | ||||||
|  | * Object-level permissions | ||||||
|  |  | ||||||
| Installation | Installation | ||||||
| ============ | ============ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user