summaryrefslogtreecommitdiff
path: root/tests/get_object_or_404/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/get_object_or_404/models.py
parentf68fa8b45dfac545cfc4111d4e52804c86db68d3 (diff)
Refs #33476 -- Reformatted code with Black.
Diffstat (limited to 'tests/get_object_or_404/models.py')
-rw-r--r--tests/get_object_or_404/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/get_object_or_404/models.py b/tests/get_object_or_404/models.py
index 24c6aa975c..d130883c53 100644
--- a/tests/get_object_or_404/models.py
+++ b/tests/get_object_or_404/models.py
@@ -19,12 +19,12 @@ class Author(models.Model):
class ArticleManager(models.Manager):
def get_queryset(self):
- return super().get_queryset().filter(authors__name__icontains='sir')
+ return super().get_queryset().filter(authors__name__icontains="sir")
class AttributeErrorManager(models.Manager):
def get_queryset(self):
- raise AttributeError('AttributeErrorManager')
+ raise AttributeError("AttributeErrorManager")
class Article(models.Model):