Skip to content

Commit

Permalink
Fixed typos in StringAgg and JSONBAgg examples
Browse files Browse the repository at this point in the history
  • Loading branch information
sdolemelipone committed Dec 3, 2022
1 parent f927a96 commit 73e4c57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/ref/contrib/postgres/aggregates.txt
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ General-purpose aggregation functions
class Room(models.Model):
number = models.IntegerField(unique=True)

class HotelReservation(model.Model):
class HotelReservation(models.Model):
room = models.ForeignKey('Room', on_delete=models.CASCADE)
start = models.DateTimeField()
end = models.DateTimeField()
Expand Down Expand Up @@ -213,7 +213,7 @@ General-purpose aggregation functions
class Publication(models.Model):
title = models.CharField(max_length=30)

class Article(model.Model):
class Article(models.Model):
headline = models.CharField(max_length=100)
publications = models.ManyToManyField(Publication)

Expand All @@ -231,7 +231,7 @@ General-purpose aggregation functions
... ).values('headline', 'publication_names')
<QuerySet [{
'headline': 'NASA uses Python', 'publication_names': 'Science News, The Python Journal'
]}]>
}]>

.. deprecated:: 4.0

Expand Down

0 comments on commit 73e4c57

Please sign in to comment.