MCPcopy
hub / github.com/tortoise/tortoise-orm / Team

Class Team

tests/testmodels.py:232–251  ·  view source on GitHub ↗

Team that is a playing

Source from the content-addressed store, hash-verified

230
231
232class Team(Model):
233 """
234 Team that is a playing
235 """
236
237 id = fields.IntField(primary_key=True)
238 name = fields.TextField()
239
240 events: fields.ManyToManyRelation[Event]
241 minrelation_through: fields.ManyToManyRelation["MinRelation"]
242 alias = fields.IntField(null=True)
243
244 class Meta:
245 ordering = ["id"]
246
247 class PydanticMeta:
248 exclude = ("minrelations",)
249
250 def __str__(self):
251 return self.name
252
253
254class EventTwo(Model):

Callers 4

test_filteringFunction · 0.90
test_aggregationFunction · 0.90
test_rev_m2mFunction · 0.90
test_relationsFunction · 0.90

Calls

no outgoing calls

Tested by 4

test_filteringFunction · 0.72
test_aggregationFunction · 0.72
test_rev_m2mFunction · 0.72
test_relationsFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…