#28118: reverse() and get_absolute_url() returns different output for same 
object ?
-----------------------------------------+------------------------
               Reporter:  Pat            |          Owner:  nobody
                   Type:  Uncategorized  |         Status:  new
              Component:  Uncategorized  |        Version:  1.8
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 {{{
 >>>
 >>> from django.contrib.flatpages.models import FlatPage
 >>>
 >>> about = FlatPage.objects.get(id=1)
 >>>
 >>> about
 <FlatPage: /about/ -- About>
 >>>
 >>> about.url
 '/about/'
 >>>
 >>> about.get_absolute_url()
 '/about/'
 >>>
 >>> from django.core.urlresolvers import reverse
 >>>
 >>> reverse("django.contrib.flatpages.views.flatpage", args=[about.url])
 '/page/about/'
 >>>
 }}}

 Why reverse() and get_absolute_url() returns two different output and what
 the purpose behind it ?

 I have tested this code in Django 1.8 and 1.10, the same behavior
 persists.

--
Ticket URL: <https://code.djangoproject.com/ticket/28118>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/053.ee1ef223302a77624c090b3267d04a1e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to