mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 09:57:55 +03:00 
			
		
		
		
	Whitespace tweaks
This commit is contained in:
		
							parent
							
								
									524954b246
								
							
						
					
					
						commit
						746b817ad3
					
				| 
						 | 
					@ -160,17 +160,25 @@ class View(ResourceMixin, RequestMixin, ResponseMixin, AuthMixin, DjangoView):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class ModelView(View):
 | 
					class ModelView(View):
 | 
				
			||||||
    """A RESTful view that maps to a model in the database."""
 | 
					    """
 | 
				
			||||||
 | 
					    A RESTful view that maps to a model in the database.
 | 
				
			||||||
 | 
					    """
 | 
				
			||||||
    resource = resources.ModelResource
 | 
					    resource = resources.ModelResource
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class InstanceModelView(InstanceMixin, ReadModelMixin, UpdateModelMixin, DeleteModelMixin, ModelView):
 | 
					class InstanceModelView(InstanceMixin, ReadModelMixin, UpdateModelMixin, DeleteModelMixin, ModelView):
 | 
				
			||||||
    """A view which provides default operations for read/update/delete against a model instance."""
 | 
					    """
 | 
				
			||||||
 | 
					    A view which provides default operations for read/update/delete against a model instance.
 | 
				
			||||||
 | 
					    """
 | 
				
			||||||
    _suffix = 'Instance'
 | 
					    _suffix = 'Instance'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class ListModelView(ListModelMixin, ModelView):
 | 
					class ListModelView(ListModelMixin, ModelView):
 | 
				
			||||||
    """A view which provides default operations for list, against a model in the database."""   
 | 
					    """
 | 
				
			||||||
 | 
					    A view which provides default operations for list, against a model in the database.
 | 
				
			||||||
 | 
					    """   
 | 
				
			||||||
    _suffix = 'List'
 | 
					    _suffix = 'List'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class ListOrCreateModelView(ListModelMixin, CreateModelMixin, ModelView):
 | 
					class ListOrCreateModelView(ListModelMixin, CreateModelMixin, ModelView):
 | 
				
			||||||
    """A view which provides default operations for list and create, against a model in the database."""   
 | 
					    """
 | 
				
			||||||
 | 
					    A view which provides default operations for list and create, against a model in the database.
 | 
				
			||||||
 | 
					    """   
 | 
				
			||||||
    _suffix = 'List'
 | 
					    _suffix = 'List'
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user