mirror of
https://github.com/django/django.git
synced 2024-12-29 12:36:08 +00:00
5e0aa362d9
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)
|