mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Refs #33476 -- Reformatted code with Black.
This commit is contained in:
committed by
Mariusz Felisiak
parent
f68fa8b45d
commit
9c19aff7c7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user