MCPcopy Index your code
hub / github.com/tortoise/tortoise-orm / Event

Class Event

examples/two_databases.py:28–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27
28class Event(Model):
29 id = fields.IntField(primary_key=True)
30 name = fields.TextField()
31 tournament_id = fields.IntField()
32 # Here we make link to events.Team, not models.Team
33 participants: fields.ManyToManyRelation["Team"] = fields.ManyToManyField(
34 "events.Team", related_name="events", through="event_team"
35 )
36
37 def __str__(self):
38 return self.name
39
40 class Meta:
41 app = "events"
42
43
44class Team(Model):

Callers 1

runFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…