mirror of
https://github.com/django/django.git
synced 2025-01-15 21:02:52 +00:00
5e0aa362d9
This reverts 4f8c7fd9d91b35e2c2922de4bb50c8c8066cbbc6 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)
|