mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 01:47:59 +03:00 
			
		
		
		
	Revert PR that adds autocomplete_fields to TokenAdmin, as this break some use cases. (#9301)
This commit is contained in:
		
							parent
							
								
									77ef27f18f
								
							
						
					
					
						commit
						d7c8dcfc7e
					
				| 
						 | 
				
			
			@ -28,7 +28,6 @@ class TokenAdmin(admin.ModelAdmin):
 | 
			
		|||
    search_help_text = _('Username')
 | 
			
		||||
    ordering = ('-created',)
 | 
			
		||||
    actions = None  # Actions not compatible with mapped IDs.
 | 
			
		||||
    autocomplete_fields = ("user",)
 | 
			
		||||
 | 
			
		||||
    def get_changelist(self, request, **kwargs):
 | 
			
		||||
        return TokenChangeList
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user