From 1ed8ca43f61138b8f8d6f92106c27060753ed4e7 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Thu, 21 Apr 2022 09:59:09 +0200 Subject: [PATCH] Refs #13085 -- Removed unnecessary ManyToManyFields from generic_relations_regress test models. --- tests/generic_relations_regress/models.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/generic_relations_regress/models.py b/tests/generic_relations_regress/models.py index 1a08d2da16..a028ff01d8 100644 --- a/tests/generic_relations_regress/models.py +++ b/tests/generic_relations_regress/models.py @@ -111,15 +111,13 @@ class Developer(models.Model): class Team(models.Model): name = models.CharField(max_length=15) - members = models.ManyToManyField(Developer) def __len__(self): - return self.members.count() + return 0 class Guild(models.Model): name = models.CharField(max_length=15) - members = models.ManyToManyField(Developer) def __bool__(self): return False