Skip to content

Commit

Permalink
Changed links from markdown syntax to rst.
Browse files Browse the repository at this point in the history
  • Loading branch information
kkumler committed Feb 1, 2013
1 parent 1e86693 commit 2f033ad
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions source/models.rst
Expand Up @@ -103,7 +103,8 @@ Use reverse() for calculating get_absolute_url
---------------------------------------------------
You want only one canonical representation of your urls. This should be in urls.py

The `permalink` decorator is [no longer recommended](https://docs.djangoproject.com/en/1.5/ref/models/instances/#the-permalink-decorator) for use.
The `permalink` decorator is `no longer recommended <https://docs.djangoproject.com/en/1.5/ref/models/instances/#the-permalink-decorator>`_ for use.


If you write a class like::

Expand Down Expand Up @@ -136,8 +137,8 @@ two DateTimeFields with `auto_now` and `auto_now_add`.::
updated_on = models.DateTimeField(auto_now = True)
Now you want, created_by and updated_by. This is possible using the
threadlocals(http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser)
technique, but since we [do not want](http://www.b-list.org/weblog/2008/dec/24/admin/)
`threadlocals <http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser>`_
technique, but since we `do not want <http://www.b-list.org/weblog/2008/dec/24/admin/>`_
to do that, we will need to pass user to the methods.::

class ItemSoldManager(models.Manager):
Expand Down

0 comments on commit 2f033ad

Please sign in to comment.