mirror of
https://github.com/django/django.git
synced 2025-08-02 18:13:02 +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
|
@ -12,7 +12,7 @@ class Author(models.Model):
|
|||
|
||||
|
||||
class Article(models.Model):
|
||||
authors = models.ManyToManyField(Author, related_name='articles')
|
||||
authors = models.ManyToManyField(Author, related_name="articles")
|
||||
title = models.CharField(max_length=50)
|
||||
summary = models.CharField(max_length=200, null=True, blank=True)
|
||||
text = models.TextField()
|
||||
|
@ -25,7 +25,7 @@ class Article(models.Model):
|
|||
class Fan(models.Model):
|
||||
name = models.CharField(max_length=50)
|
||||
age = models.PositiveSmallIntegerField(default=30)
|
||||
author = models.ForeignKey(Author, models.CASCADE, related_name='fans')
|
||||
author = models.ForeignKey(Author, models.CASCADE, related_name="fans")
|
||||
fan_since = models.DateTimeField(null=True, blank=True)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue