diff --git a/docs/ref/contrib/postgres/aggregates.txt b/docs/ref/contrib/postgres/aggregates.txt index 285e86f5d5..d8964115e0 100644 --- a/docs/ref/contrib/postgres/aggregates.txt +++ b/docs/ref/contrib/postgres/aggregates.txt @@ -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()