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:
committed by
Mariusz Felisiak
parent
f68fa8b45d
commit
9c19aff7c7
@@ -7,7 +7,7 @@ class Article(models.Model):
|
||||
expire_date = models.DateField()
|
||||
|
||||
class Meta:
|
||||
get_latest_by = 'pub_date'
|
||||
get_latest_by = "pub_date"
|
||||
|
||||
|
||||
class Person(models.Model):
|
||||
@@ -18,11 +18,13 @@ class Person(models.Model):
|
||||
|
||||
# Ticket #23555 - model with an intentionally broken QuerySet.__iter__ method.
|
||||
|
||||
|
||||
class IndexErrorQuerySet(models.QuerySet):
|
||||
"""
|
||||
Emulates the case when some internal code raises an unexpected
|
||||
IndexError.
|
||||
"""
|
||||
|
||||
def __iter__(self):
|
||||
raise IndexError
|
||||
|
||||
|
||||
Reference in New Issue
Block a user