#3540: permalink documentation is incomplete and contains errors -----------------------------------------------+---------------------------- Reporter: Thomas Steinacher <[EMAIL PROTECTED]> | Owner: jacob Status: new | Component: Documentation Version: SVN | Keywords: Stage: Unreviewed | Has_patch: 0 -----------------------------------------------+---------------------------- In the [http://www.djangoproject.com/documentation/model_api/ permalink documentation] you can find the following example: {{{ def get_absolute_url(self): return ('people.views.details', str(self.id)) get_absolute_url = permalink(get_absolute_url) }}} However, this works only for ids < 10, because the second argument needs to be a tuple or a list. This would be correct: {{{ return ('people.views.details', (str(self.id),)) }}} Also, the documentation is incomplete. It is not mentioned that permalink accepts named parameters (this is described e.g. on [http://collingrady.com/2007/02/15/django-permalink/])
-- Ticket URL: <http://code.djangoproject.com/ticket/3540> Django Code <http://code.djangoproject.com/> The web framework for perfectionists with deadlines --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
