Skip to content

Commit 0581049

Browse files
authored
Merge pull request #1 from ju-c/typo-correction-get-absolute-url
Correcting a typo.
2 parents 2d33a9f + ce799ea commit 0581049

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ class Book(models.Model):
349349

350350
### The get_absolute_url Method
351351
[Django Documentation: get_absolute_url()](https://docs.djangoproject.com/en/stable/ref/models/instances/#get-absolute-url)
352-
The str method method sets a canonical URL for the model.
352+
The `get_absolute_url` method sets a canonical URL for the model.
353353
```python
354354
# my_book_app/models.py
355355
from django.db import models
@@ -1748,4 +1748,4 @@ Use `ALLOWED_HOSTS` to only accept requests from trusted hosts.
17481748
- [mdn web docs: Django Web Framework](https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django)
17491749
- [Django Styleguide](https://github.com/HackSoftware/Django-Styleguide)
17501750
- [Simple is better than complex](https://simpleisbetterthancomplex.com/)
1751-
- [Two scoops of Django 3.x](https://www.feldroy.com/books/two-scoops-of-django-3-x)
1751+
- [Two scoops of Django 3.x](https://www.feldroy.com/books/two-scoops-of-django-3-x)

0 commit comments

Comments
 (0)