mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 09:57:55 +03:00 
			
		
		
		
	Merge pull request #5073 from khakulov/patch-1
Clarify get_schema_fields signature
This commit is contained in:
		
						commit
						fd72a814f8
					
				| 
						 | 
				
			
			@ -432,8 +432,11 @@ The method should return a rendered HTML string.
 | 
			
		|||
## Pagination & schemas
 | 
			
		||||
 | 
			
		||||
You can also make the filter controls available to the schema autogeneration
 | 
			
		||||
that REST framework provides, by implementing a `get_schema_fields()` method,
 | 
			
		||||
which should return a list of `coreapi.Field` instances.
 | 
			
		||||
that REST framework provides, by implementing a `get_schema_fields()` method. This method should have the following signature:
 | 
			
		||||
 | 
			
		||||
`get_schema_fields(self, view)`
 | 
			
		||||
 | 
			
		||||
The method should return a list of `coreapi.Field` instances.
 | 
			
		||||
 | 
			
		||||
# Third party packages
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -279,8 +279,11 @@ API responses for list endpoints will now include a `Link` header, instead of in
 | 
			
		|||
## Pagination & schemas
 | 
			
		||||
 | 
			
		||||
You can also make the pagination controls available to the schema autogeneration
 | 
			
		||||
that REST framework provides, by implementing a `get_schema_fields()` method,
 | 
			
		||||
which should return a list of `coreapi.Field` instances.
 | 
			
		||||
that REST framework provides, by implementing a `get_schema_fields()` method. This method should have the following signature:
 | 
			
		||||
 | 
			
		||||
`get_schema_fields(self, view)`
 | 
			
		||||
 | 
			
		||||
The method should return a list of `coreapi.Field` instances.
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user