diff --git a/tests/introspection/models.py b/tests/introspection/models.py index d31eb0cbfafc..59f799a758a3 100644 --- a/tests/introspection/models.py +++ b/tests/introspection/models.py @@ -1,4 +1,5 @@ from django.db import models +from django_singlestore.schema import ModelStorageManager class City(models.Model): @@ -25,6 +26,8 @@ class Reporter(models.Model): small_int = models.SmallIntegerField() interval = models.DurationField() + objects = ModelStorageManager("ROWSTORE REFERENCE") + class Meta: unique_together = ("first_name", "last_name") @@ -38,6 +41,8 @@ class Article(models.Model): unmanaged_reporters = models.ManyToManyField( Reporter, through="ArticleReporter", related_name="+" ) + + objects = ModelStorageManager("ROWSTORE REFERENCE") class Meta: ordering = ("headline",) @@ -62,6 +67,8 @@ class Comment(models.Model): pub_date = models.DateTimeField() body = models.TextField() + objects = ModelStorageManager("ROWSTORE REFERENCE") + class Meta: constraints = [ models.UniqueConstraint(