File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
355355from 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 )
You can’t perform that action at this time.
0 commit comments