MCPcopy
hub / github.com/django/django / M

Class M

tests/validation/test_unique.py:71–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 for unique_together, normalized in data.values():
70
71 class M(models.Model):
72 foo = models.IntegerField()
73 bar = models.IntegerField()
74 baz = models.IntegerField()
75
76 Meta = type(
77 "Meta", (), {"unique_together": unique_together, "apps": Apps()}
78 )
79
80 checks, _ = M()._get_unique_checks()
81 for t in normalized:

Callers 1

Calls 1

AppsClass · 0.90

Tested by 1