mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 09:57:55 +03:00 
			
		
		
		
	[FIX] "@api_view" calling error.
"@api_view" usage error.
This commit is contained in:
		
							parent
							
								
									d85162c83d
								
							
						
					
					
						commit
						05204333a5
					
				| 
						 | 
				
			
			@ -11,7 +11,7 @@ Right now we have endpoints for 'snippets' and 'users', but we don't have a sing
 | 
			
		|||
    from rest_framework.reverse import reverse
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    @api_view(('GET',))
 | 
			
		||||
    @api_view(['GET',])
 | 
			
		||||
    def api_root(request, format=None):
 | 
			
		||||
        return Response({
 | 
			
		||||
            'users': reverse('user-list', request=request, format=format),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user