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/inline_formsets/models.py | |
| parent | f68fa8b45dfac545cfc4111d4e52804c86db68d3 (diff) | |
Refs #33476 -- Reformatted code with Black.
Diffstat (limited to 'tests/inline_formsets/models.py')
| -rw-r--r-- | tests/inline_formsets/models.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/inline_formsets/models.py b/tests/inline_formsets/models.py index 90d434e123..f4c06e8fac 100644 --- a/tests/inline_formsets/models.py +++ b/tests/inline_formsets/models.py @@ -10,8 +10,8 @@ class Parent(models.Model): class Child(models.Model): - mother = models.ForeignKey(Parent, models.CASCADE, related_name='mothers_children') - father = models.ForeignKey(Parent, models.CASCADE, related_name='fathers_children') + mother = models.ForeignKey(Parent, models.CASCADE, related_name="mothers_children") + father = models.ForeignKey(Parent, models.CASCADE, related_name="fathers_children") school = models.ForeignKey(School, models.CASCADE) name = models.CharField(max_length=100) @@ -28,7 +28,7 @@ class Poem(models.Model): name = models.CharField(max_length=100) class Meta: - unique_together = ('poet', 'name') + unique_together = ("poet", "name") def __str__(self): return self.name |
