MCPcopy
hub / github.com/django/django / Address

Class Address

tests/foreign_object/models/customers.py:4–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2
3
4class Address(models.Model):
5 company = models.CharField(max_length=1)
6 customer_id = models.IntegerField()
7
8 class Meta:
9 unique_together = [
10 ("company", "customer_id"),
11 ]
12
13
14class Customer(models.Model):

Calls

no outgoing calls