mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
This reverts4f8c7fd9d9and adds two regression tests: - test_related_manager_refresh(), and - test_create_copy_with_m2m(). Thanks joeli for the report. Backport of5e0aa362d9from main
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)
|