mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-10-30 23:47:53 +03:00 
			
		
		
		
	
							parent
							
								
									637af1fc14
								
							
						
					
					
						commit
						9d80335ac8
					
				|  | @ -178,7 +178,7 @@ The actions provided by the `ModelViewSet` class are `.list()`, `.retrieve()`, | |||
| 
 | ||||
| #### Example | ||||
| 
 | ||||
| Because `ModelViewSet` extends `GenericAPIView`, you'll normally need to provide at least the `queryset` and `serializer_class` attributes, or the `model` attribute shortcut.  For example: | ||||
| Because `ModelViewSet` extends `GenericAPIView`, you'll normally need to provide at least the `queryset` and `serializer_class` attributes.  For example: | ||||
| 
 | ||||
|     class AccountViewSet(viewsets.ModelViewSet): | ||||
|         """ | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user