mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 18:08:03 +03:00 
			
		
		
		
	docs(tutorial): add missing permission import in viewsets
This commit is contained in:
		
							parent
							
								
									0e1c5d3132
								
							
						
					
					
						commit
						ed7f3c55f7
					
				| 
						 | 
				
			
			@ -27,6 +27,7 @@ Next we're going to replace the `SnippetList`, `SnippetDetail` and `SnippetHighl
 | 
			
		|||
 | 
			
		||||
    from rest_framework.decorators import action
 | 
			
		||||
    from rest_framework.response import Response
 | 
			
		||||
    from rest_framework import permissions
 | 
			
		||||
 | 
			
		||||
    class SnippetViewSet(viewsets.ModelViewSet):
 | 
			
		||||
        """
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user