mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Refs #28459 -- Optimized ModelState instantiation.
This commit is contained in:
committed by
Tim Graham
parent
97cb3bd16d
commit
5cc7462067
8
tests/model_regress/test_state.py
Normal file
8
tests/model_regress/test_state.py
Normal file
@@ -0,0 +1,8 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user