summaryrefslogtreecommitdiff
path: root/tests/schema/fields.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/schema/fields.py')
-rw-r--r--tests/schema/fields.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/schema/fields.py b/tests/schema/fields.py
index e4b62eab39..aaba202364 100644
--- a/tests/schema/fields.py
+++ b/tests/schema/fields.py
@@ -34,7 +34,12 @@ class CustomManyToManyField(RelatedField):
self.db_table = db_table
if kwargs['rel'].through is not None:
assert self.db_table is None, "Cannot specify a db_table if an intermediary model is used."
- super().__init__(**kwargs)
+ super().__init__(
+ related_name=related_name,
+ related_query_name=related_query_name,
+ limit_choices_to=limit_choices_to,
+ **kwargs,
+ )
def contribute_to_class(self, cls, name, **kwargs):
if self.remote_field.symmetrical and (