mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 09:57:55 +03:00 
			
		
		
		
	Fix documentation's sample code in API Guide (#4756)
This commit is contained in:
		
							parent
							
								
									ebe174c0d7
								
							
						
					
					
						commit
						c2367fb017
					
				| 
						 | 
					@ -281,8 +281,8 @@ A generic view with sections in the class docstring, using single-line style.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    class UserList(generics.ListCreateAPIView):
 | 
					    class UserList(generics.ListCreateAPIView):
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
        get: Create a new user.
 | 
					        get: List all the users.
 | 
				
			||||||
        post: List all the users.
 | 
					        post: Create a new user.
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
        queryset = User.objects.all()
 | 
					        queryset = User.objects.all()
 | 
				
			||||||
        serializer_class = UserSerializer
 | 
					        serializer_class = UserSerializer
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user