mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 09:57:55 +03:00 
			
		
		
		
	Fixed TypeError that occurs without request data.
If no request data gets sent, allowed_extra_fields is a set and can't be joined to a tuple using the + operator.
This commit is contained in:
		
							parent
							
								
									746b817ad3
								
							
						
					
					
						commit
						e3c00e4c1e
					
				| 
						 | 
					@ -111,7 +111,7 @@ class FormResource(Resource):
 | 
				
			||||||
        # To get around this case we revalidate with some fake data. 
 | 
					        # To get around this case we revalidate with some fake data. 
 | 
				
			||||||
        if fake_data:
 | 
					        if fake_data:
 | 
				
			||||||
            data[fake_data] = '_fake_data'
 | 
					            data[fake_data] = '_fake_data'
 | 
				
			||||||
            allowed_extra_fields = allowed_extra_fields + ('_fake_data',)
 | 
					            allowed_extra_fields = tuple(allowed_extra_fields) + ('_fake_data',)
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
        bound_form = self.get_bound_form(data, files)
 | 
					        bound_form = self.get_bound_form(data, files)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user