Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
4
class
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
14
class
Customer(models.Model):
Callers
9
sanitize_address
Function · 0.50
_idna_encode_address_header_domains
Method · 0.50
prep_address
Method · 0.50
build_address
Function · 0.50
test_unicode_address_header
Method · 0.50
test_unicode_headers
Method · 0.50
test_non_utf8_headers_multipart
Method · 0.50
test_address_header_handling
Method · 0.50
test_localpart_only_address
Method · 0.50
Calls
no outgoing calls
Tested by
6
build_address
Function · 0.40
test_unicode_address_header
Method · 0.40
test_unicode_headers
Method · 0.40
test_non_utf8_headers_multipart
Method · 0.40
test_address_header_handling
Method · 0.40
test_localpart_only_address
Method · 0.40