mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	This reverts 4f8c7fd9d9 and adds
two regression tests:
- test_related_manager_refresh(), and
- test_create_copy_with_m2m().
Thanks joeli for the report.
		
	
		
			
				
	
	
		
			8 lines
		
	
	
		
			290 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			290 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from django.db.models.base import ModelState, ModelStateFieldsCacheDescriptor
 | |
| from django.test import SimpleTestCase
 | |
| 
 | |
| 
 | |
| class ModelStateTests(SimpleTestCase):
 | |
|     def test_fields_cache_descriptor(self):
 | |
|         self.assertIsInstance(ModelState.fields_cache, ModelStateFieldsCacheDescriptor)
 |