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