summaryrefslogtreecommitdiff
path: root/tests/inline_formsets/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/inline_formsets/models.py')
-rw-r--r--tests/inline_formsets/models.py6
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