Ticket #9326: 9326.diff

File 9326.diff, 533 bytes (added by Tim Graham, 15 years ago)
  • docs/ref/models/instances.txt

     
    406406
    407407    from django.db.models import permalink
    408408
     409    @models.permalink
    409410    def get_absolute_url(self):
    410411        return ('people_view', [str(self.id)])
    411     get_absolute_url = permalink(get_absolute_url)
    412412
    413413More details on named URL patterns are in the :ref:`URL dispatch documentation
    414414<topics-http-urls>`.
Back to Top