diff options
| author | django-bot <ops@djangoproject.com> | 2022-02-08 12:09:55 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-08 12:15:38 +0100 |
| commit | 6a682b38e75d4c975b4c4493565a59f1bc14397c (patch) | |
| tree | 0bd9cda550bea26238656d9f120d769e8b41bb9e /tests/aggregation/models.py | |
| parent | e73ce08888e6f34d3f050377cfd2fbb733be94a9 (diff) | |
[4.0.x] Refs #33476 -- Reformatted code with Black.
Backport of 9c19aff7c7561e3a82978a272ecdaad40dda5c00 from main.
Diffstat (limited to 'tests/aggregation/models.py')
| -rw-r--r-- | tests/aggregation/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/aggregation/models.py b/tests/aggregation/models.py index cfc261abcc..0d3a8a2713 100644 --- a/tests/aggregation/models.py +++ b/tests/aggregation/models.py @@ -4,7 +4,7 @@ from django.db import models class Author(models.Model): name = models.CharField(max_length=100) age = models.IntegerField() - friends = models.ManyToManyField('self', blank=True) + friends = models.ManyToManyField("self", blank=True) rating = models.FloatField(null=True) def __str__(self): @@ -27,7 +27,7 @@ class Book(models.Model): rating = models.FloatField() price = models.DecimalField(decimal_places=2, max_digits=6) authors = models.ManyToManyField(Author) - contact = models.ForeignKey(Author, models.CASCADE, related_name='book_contact_set') + contact = models.ForeignKey(Author, models.CASCADE, related_name="book_contact_set") publisher = models.ForeignKey(Publisher, models.CASCADE) pubdate = models.DateField() |
