1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Refs #13085 -- Removed unnecessary ManyToManyFields from generic_relations_regress test models.

This commit is contained in:
Mariusz Felisiak 2022-04-21 09:59:09 +02:00 committed by GitHub
parent 6f311c7e35
commit 1ed8ca43f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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