diff options
Diffstat (limited to 'tests/test_utils/models.py')
| -rw-r--r-- | tests/test_utils/models.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_utils/models.py b/tests/test_utils/models.py index 57518aef90..4d91c03a03 100644 --- a/tests/test_utils/models.py +++ b/tests/test_utils/models.py @@ -7,10 +7,12 @@ class Car(models.Model): class Person(models.Model): name = models.CharField(max_length=100) - cars = models.ManyToManyField(Car, through='PossessedCar') + cars = models.ManyToManyField(Car, through="PossessedCar") data = models.BinaryField(null=True) class PossessedCar(models.Model): car = models.ForeignKey(Car, models.CASCADE) - belongs_to = models.ForeignKey(Person, models.CASCADE, related_name='possessed_cars') + belongs_to = models.ForeignKey( + Person, models.CASCADE, related_name="possessed_cars" + ) |
