Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tests/introspection/models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from django.db import models
from django_singlestore.schema import ModelStorageManager


class City(models.Model):
Expand All @@ -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")

Expand All @@ -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",)
Expand All @@ -62,6 +67,8 @@ class Comment(models.Model):
pub_date = models.DateTimeField()
body = models.TextField()

objects = ModelStorageManager("ROWSTORE REFERENCE")

class Meta:
constraints = [
models.UniqueConstraint(
Expand Down
Loading