summaryrefslogtreecommitdiff
path: root/tests/null_fk_ordering/models.py
diff options
context:
space:
mode:
authordjango-bot <ops@djangoproject.com>2022-02-03 20:24:19 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-02-07 20:37:05 +0100
commit9c19aff7c7561e3a82978a272ecdaad40dda5c00 (patch)
treef0506b668a013d0063e5fba3dbf4863b466713ba /tests/null_fk_ordering/models.py
parentf68fa8b45dfac545cfc4111d4e52804c86db68d3 (diff)
Refs #33476 -- Reformatted code with Black.
Diffstat (limited to 'tests/null_fk_ordering/models.py')
-rw-r--r--tests/null_fk_ordering/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/null_fk_ordering/models.py b/tests/null_fk_ordering/models.py
index f42ff7b8d5..adfdbf3bea 100644
--- a/tests/null_fk_ordering/models.py
+++ b/tests/null_fk_ordering/models.py
@@ -18,7 +18,7 @@ class Article(models.Model):
author = models.ForeignKey(Author, models.SET_NULL, null=True)
class Meta:
- ordering = ['author__name']
+ ordering = ["author__name"]
# These following 4 models represent a far more complex ordering case.
@@ -41,4 +41,4 @@ class Comment(models.Model):
comment_text = models.CharField(max_length=250)
class Meta:
- ordering = ['post__forum__system_info__system_name', 'comment_text']
+ ordering = ["post__forum__system_info__system_name", "comment_text"]