mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 18:08:03 +03:00 
			
		
		
		
	Fixed a bug backticks
fix
    you may optionally exclude the ``self.check_object_permissions, and simply return the object from the `get_object_or_404` lookup.
to
    you may optionally exclude the `self.check_object_permissions`, and simply return the object from the `get_object_or_404` lookup.
			
			
This commit is contained in:
		
							parent
							
								
									b0460a4a58
								
							
						
					
					
						commit
						ba8a0bac53
					
				| 
						 | 
					@ -119,7 +119,7 @@ For example:
 | 
				
			||||||
        self.check_object_permissions(self.request, obj)
 | 
					        self.check_object_permissions(self.request, obj)
 | 
				
			||||||
        return obj
 | 
					        return obj
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Note that if your API doesn't include any object level permissions, you may optionally exclude the ``self.check_object_permissions, and simply return the object from the `get_object_or_404` lookup.
 | 
					Note that if your API doesn't include any object level permissions, you may optionally exclude the `self.check_object_permissions`, and simply return the object from the `get_object_or_404` lookup.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#### `get_filter_backends(self)`
 | 
					#### `get_filter_backends(self)`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user