mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-10-30 23:47:53 +03:00 
			
		
		
		
	
							parent
							
								
									3bf611787a
								
							
						
					
					
						commit
						5435b2c9f0
					
				|  | @ -11,7 +11,6 @@ from django.core.validators import ( | |||
| ) | ||||
| from django.db import models | ||||
| from django.utils.encoding import force_str | ||||
| from inflection import pluralize | ||||
| 
 | ||||
| from rest_framework import ( | ||||
|     RemovedInDRF315Warning, exceptions, renderers, serializers | ||||
|  | @ -249,6 +248,8 @@ class AutoSchema(ViewInspector): | |||
|                 name = name[:-len(action)] | ||||
| 
 | ||||
|         if action == 'list': | ||||
|             from inflection import pluralize | ||||
| 
 | ||||
|             name = pluralize(name) | ||||
| 
 | ||||
|         return name | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user