1
0
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:
django-bot
2022-02-03 20:24:19 +01:00
committed by Mariusz Felisiak
parent f68fa8b45d
commit 9c19aff7c7
1992 changed files with 139577 additions and 96284 deletions

View File

@@ -12,8 +12,9 @@ class Author(models.Model):
# this'll make the test suite get angry if annotations aren't
# treated differently than fields.
for k in kwargs:
assert k in [f.attname for f in self._meta.fields], \
assert k in [f.attname for f in self._meta.fields], (
"Author.__init__ got an unexpected parameter: %s" % k
)
class Book(models.Model):
@@ -24,7 +25,9 @@ class Book(models.Model):
class BookFkAsPk(models.Model):
book = models.ForeignKey(Book, models.CASCADE, primary_key=True, db_column="not_the_default")
book = models.ForeignKey(
Book, models.CASCADE, primary_key=True, db_column="not_the_default"
)
class Coffee(models.Model):
@@ -33,7 +36,7 @@ class Coffee(models.Model):
class MixedCaseIDColumn(models.Model):
id = models.AutoField(primary_key=True, db_column='MiXeD_CaSe_Id')
id = models.AutoField(primary_key=True, db_column="MiXeD_CaSe_Id")
class Reviewer(models.Model):