mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-10-30 23:47:53 +03:00 
			
		
		
		
	release_notes: fix call to super().data
`super().data()` leads to a `TypeError` saying that 'ReturnDict' object is not callable.
This commit is contained in:
		
							parent
							
								
									2621e03aa3
								
							
						
					
					
						commit
						3a29eff5f8
					
				|  | @ -74,7 +74,7 @@ You can determine your currently installed version using `pip show`: | |||
|             """ | ||||
|             Drop `maybe_none` field if None. | ||||
|             """ | ||||
|             data = super().data() | ||||
|             data = super().data | ||||
|             if 'maybe_none' in data and data['maybe_none'] is None: | ||||
|                 del data['maybe_none'] | ||||
|             return data | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user