From 5cc70b863f4cdb8aa18edca074070c0d4fd17d8d Mon Sep 17 00:00:00 2001 From: Parth Sharma Date: Wed, 14 May 2025 17:52:23 +0530 Subject: [PATCH] Fix of introspection --- tests/introspection/models.py | 7 +++++++ 1 file changed, 7 insertions(+) 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(