#16653: Clarify "Reversing admin URLs" in docu...
-----------------------------------------+-------------------------------
               Reporter:  jedie          |          Owner:  nobody
                   Type:  Uncategorized  |         Status:  new
              Milestone:                 |      Component:  Documentation
                Version:  1.3            |       Severity:  Normal
             Resolution:                 |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  1
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  1
                  UI/UX:  0              |
-----------------------------------------+-------------------------------
Changes (by jedie):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 Hm. We can use "Parameters" as args and as kwargs. So renaming
 "Parameters" to "args" ist wrong.

 But for clarify it's IMHO usefull we have a example which used 'kwargs'
 (There is already an example with 'args').

 I would suggest this:
 {{{#!diff
 diff --git a/docs/ref/contrib/admin/index.txt
 b/docs/ref/contrib/admin/index.txt
 index beff94e..e4ade64 100644
 --- a/docs/ref/contrib/admin/index.txt
 +++ b/docs/ref/contrib/admin/index.txt
 @@ -1706,6 +1706,11 @@ The :class:`AdminSite` provides the following named
 URL patterns:
      Application index page  ``app_list``              ``app_label``
      ======================  ========================  =============

 +Example go get the index page of the auth contrib app::
 +
 +    >>> from django.core import urlresolvers
 +    >>> app_index_url = urlresolvers.reverse('admin:app_list',
 kwargs={'app_label': 'auth'})
 +
  Each :class:`ModelAdmin` instance provides an additional set of named
 URLs:

      ======================
 ===============================================   =============
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16653#comment:1>
Django <https://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.

Reply via email to