mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #10553 -- Corrected several uses of URLconf
in documentation and comments, according to the Django style guide. Based on patch from rduffield.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10256 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
3a0950739b
commit
b4f5655c86
10 changed files with 17 additions and 19 deletions
|
@ -290,7 +290,7 @@ The ``permalink`` decorator
|
|||
|
||||
The problem with the way we wrote ``get_absolute_url()`` above is that it
|
||||
slightly violates the DRY principle: the URL for this object is defined both
|
||||
in the URLConf file and in the model.
|
||||
in the URLconf file and in the model.
|
||||
|
||||
You can further decouple your models from the URLconf using the ``permalink``
|
||||
decorator:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue