mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Refs #33476 -- Reformatted code with Black.
This commit is contained in:
parent
f68fa8b45d
commit
9c19aff7c7
1992 changed files with 139577 additions and 96284 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue