#11163: admin ForeignKeyRawIdWidget contains incorrect link when used in change
list view
-----------------------------------------------+----------------------------
          Reporter:  margierogin...@yahoo.com  |         Owner:  nobody
            Status:  closed                    |     Milestone:        
         Component:  Uncategorized             |       Version:  1.0   
        Resolution:  invalid                   |      Keywords:        
             Stage:  Unreviewed                |     Has_patch:  0     
        Needs_docs:  0                         |   Needs_tests:  0     
Needs_better_patch:  0                         |  
-----------------------------------------------+----------------------------
Comment (by margierogin...@yahoo.com):

 I am including admin.site.urls.  My urls.py looks like this:

 from django.contrib import admin
 admin.autodiscover()

 import os
 urlpatterns = patterns('',
                        (r'^admin/', include(admin.site.urls)),

 )

 if settings.SERVE_MEDIA:
     urlpatterns += patterns('',
         (r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
             {'document_root': os.path.join(os.path.dirname(__file__),
 "site_media")}),
     )


 I don't know if this is useful, but here is the value that site.get_urls()
 returns (newlines added by me):

 (Pdb) from django.contrib.admin.sites import site
 (Pdb) site
 <django.contrib.admin.sites.AdminSite object at 0x2a9a5bf2d0>
 (Pdb) site.get_urls()
 [<RegexURLPattern admin_index ^$>,
 <RegexURLPattern %sadmin_logout ^logout/$>,
 <RegexURLPattern admin_password_change ^password_change/$>,
 <RegexURLPattern admin_password_change_done ^password_change/done/$>,
 <RegexURLPattern admin_jsi18n ^jsi18n/$>,
 <RegexURLPattern None ^r/(?P<content_type_id>\d+)/(?P<object_id>.+)/$>,
 <RegexURLPattern admin_app_list ^(?P<app_label>\w+)/$>,
 <RegexURLResolver [<RegexURLPattern admin_auth_group_changelist ^$>,
 <RegexURLPattern admin_auth_group_add ^add/$>,
 <RegexURLPattern admin_auth_group_history ^(.+)/history/$>,
 <RegexURLPattern admin_auth_group_delete ^(.+)/delete/$>,
 <RegexURLPattern admin_auth_group_change ^(.+)/$>] ^auth/group/>,
 <RegexURLResolver [<RegexURLPattern None ^(\d+)/password/$>,
 <RegexURLPattern admin_auth_user_changelist ^$>,
 <RegexURLPattern admin_auth_user_add ^add/$>,
 <RegexURLPattern admin_auth_user_history ^(.+)/history/$>,
 <RegexURLPattern admin_auth_user_delete ^(.+)/delete/$>,
 <RegexURLPattern admin_auth_user_change ^(.+)/$>] ^auth/user/>,
 <RegexURLResolver [<RegexURLPattern admin_sites_site_changelist ^$>,
 <RegexURLPattern admin_sites_site_add ^add/$>,
 <RegexURLPattern admin_sites_site_history ^(.+)/history/$>,
 <RegexURLPattern admin_sites_site_delete ^(.+)/delete/$>,
 <RegexURLPattern admin_sites_site_change ^(.+)/$>] ^sites/site/>,
 <RegexURLResolver [<RegexURLPattern admin_taskmanager_task_changelist ^$>,
 <RegexURLPattern admin_taskmanager_task_add ^add/$>,
 <RegexURLPattern admin_taskmanager_task_history ^(.+)/history/$>,
 <RegexURLPattern admin_taskmanager_task_delete ^(.+)/delete/$>,
 <RegexURLPattern admin_taskmanager_task_change ^(.+)/$>]
 ^taskmanager/task/>]
 (Pdb)

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11163#comment:3>
Django <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 django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to