mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #33772 -- Added QuerySet.first()/last() error message on unordered queryset with aggregation.
This commit is contained in:
committed by
Mariusz Felisiak
parent
db588d4f0e
commit
d287294885
@@ -16,6 +16,11 @@ class Person(models.Model):
|
||||
# Note that this model doesn't have "get_latest_by" set.
|
||||
|
||||
|
||||
class Comment(models.Model):
|
||||
article = models.ForeignKey(Article, on_delete=models.CASCADE)
|
||||
likes_count = models.PositiveIntegerField()
|
||||
|
||||
|
||||
# Ticket #23555 - model with an intentionally broken QuerySet.__iter__ method.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user