mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-10-30 23:47:53 +03:00 
			
		
		
		
	Merge pull request #453 from yprez/docs_fix
api-guide/views.md - add imports to code example
This commit is contained in:
		
						commit
						77fa98d839
					
				|  | @ -19,6 +19,10 @@ Using the `APIView` class is pretty much the same as using a regular `View` clas | ||||||
| 
 | 
 | ||||||
| For example: | For example: | ||||||
| 
 | 
 | ||||||
|  |     from rest_framework.views import APIView | ||||||
|  |     from rest_framework.response import Response | ||||||
|  |     from rest_framework import authentication, permissions | ||||||
|  | 
 | ||||||
|     class ListUsers(APIView): |     class ListUsers(APIView): | ||||||
|         """ |         """ | ||||||
|         View to list all users in the system. |         View to list all users in the system. | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user