mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 09:57:55 +03:00 
			
		
		
		
	Merge pull request #6843 from max-wittig/patch-1
docs(tutorial): add missing permission import in viewsets
This commit is contained in:
		
						commit
						fdf277a782
					
				| 
						 | 
				
			
			@ -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