From ce799ea5343313efa8ed069fdae6ee7a205acd1a Mon Sep 17 00:00:00 2001 From: Julien Cortesi Date: Mon, 10 Jul 2023 18:50:50 +0200 Subject: [PATCH] Correcting a typo. What: Correcting a typo. How: Replacing "the str method method" (line 352) by "The get_absolute_url method". --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index de7dbbf..92137a7 100644 --- a/README.md +++ b/README.md @@ -349,7 +349,7 @@ class Book(models.Model): ### The get_absolute_url Method [Django Documentation: get_absolute_url()](https://docs.djangoproject.com/en/stable/ref/models/instances/#get-absolute-url) -The str method method sets a canonical URL for the model. +The `get_absolute_url` method sets a canonical URL for the model. ```python # my_book_app/models.py from django.db import models @@ -1748,4 +1748,4 @@ Use `ALLOWED_HOSTS` to only accept requests from trusted hosts. - [mdn web docs: Django Web Framework](https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django) - [Django Styleguide](https://github.com/HackSoftware/Django-Styleguide) - [Simple is better than complex](https://simpleisbetterthancomplex.com/) -- [Two scoops of Django 3.x](https://www.feldroy.com/books/two-scoops-of-django-3-x) \ No newline at end of file +- [Two scoops of Django 3.x](https://www.feldroy.com/books/two-scoops-of-django-3-x)