1 | diff --git a/tests/modeltests/composite_fields/models.py b/tests/modeltests/composite_fields/models.py
|
---|
2 | index 6b53885..6d29b8b 100644
|
---|
3 | --- a/tests/modeltests/composite_fields/models.py
|
---|
4 | +++ b/tests/modeltests/composite_fields/models.py
|
---|
5 | @@ -33,3 +33,11 @@ class MostFieldTypes(models.Model):
|
---|
6 | all_fields = models.CompositeField(bool_field, char_field, date_field,
|
---|
7 | dtime_field, time_field, dec_field,
|
---|
8 | float_field, int_field)
|
---|
9 | +
|
---|
10 | +class Relationship(models.Model):
|
---|
11 | + first_person = models.ForeignKey(Person, related_name='rel_a')
|
---|
12 | + second_person = models.ForeignKey(Person, related_name='rel_b')
|
---|
13 | + status = models.CharField(max_length=128)
|
---|
14 | +
|
---|
15 | + composite_key = models.CompositeField(
|
---|
16 | + first_person, second_person, primary_key=True)
|
---|