diff options
| author | django-bot <ops@djangoproject.com> | 2022-02-03 20:24:19 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-07 20:37:05 +0100 |
| commit | 9c19aff7c7561e3a82978a272ecdaad40dda5c00 (patch) | |
| tree | f0506b668a013d0063e5fba3dbf4863b466713ba /tests/test_utils/models.py | |
| parent | f68fa8b45dfac545cfc4111d4e52804c86db68d3 (diff) | |
Refs #33476 -- Reformatted code with Black.
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" + ) |
