mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 09:57:55 +03:00 
			
		
		
		
	Merge branch 'issue-192-expose-fields-for-options' of github.com:nschlemm/django-rest-framework into issue-192-expose-fields-for-options
This commit is contained in:
		
						commit
						19f838f655
					
				| 
						 | 
				
			
			@ -79,7 +79,14 @@ class APIView(View):
 | 
			
		|||
            try:
 | 
			
		||||
                self.check_permissions(cloned_request)
 | 
			
		||||
 | 
			
		||||
                # TODO: discuss whether and how to expose parameters like e.g. filter or paginate
 | 
			
		||||
                if method in ('GET', 'DELETE'):
 | 
			
		||||
                    actions[method] = {}
 | 
			
		||||
                    continue
 | 
			
		||||
 | 
			
		||||
                # TODO: find right placement - APIView does not have get_serializer
 | 
			
		||||
                if not hasattr(self, 'get_serializer'):
 | 
			
		||||
                    continue
 | 
			
		||||
                serializer = self.get_serializer()
 | 
			
		||||
                if serializer is not None:
 | 
			
		||||
                    field_name_types = {}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user