#11678: ValueError when passing an extra parameter in URL -------------------------------------------+-------------------------------- Reporter: kberkhout | Owner: nobody Status: closed | Milestone: Component: django.contrib.admin | Version: 1.1 Resolution: duplicate | Keywords: ValueError, django.contrib.admin Stage: Unreviewed | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | -------------------------------------------+-------------------------------- Comment (by mr.ksc...@gmail.com):
Replying to [comment:3 Alex]: > What you've just said is orthagonal to the problem the reporter hsa. If you believe there is a different bug please file a new ticket, this one is a duplicate. Ok, I just fixed how Django1.1 forward urls ... using the new get_urls(self) documented on http://docs.djangoproject.com/en/dev/ref/contrib/admin/#modeladmin-methods The old codes should be updated to use get_urls instead of __call__ like... {{{ def get_urls(self): from django.conf.urls.defaults import * urls = super(MyModelAdmin, self).get_urls() my_urls = patterns('', (r'search', auto_complete), ) return my_urls + urls }}} -- Ticket URL: <http://code.djangoproject.com/ticket/11678#comment:4> 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 -~----------~----~----~----~------~----~------~--~---