Re: [Django] #11678: ValueError when passing an extra parameter in URL

2009-08-28 Thread Django
#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 kmtracey):

 Replying to [comment:4 mr.ksc...@gmail.com]:

 Please open a new ticket for this problem rather than continuing to post
 snippets of info and fix possibilities here.  Posting such information to
 closed tickets is likely going to result in the information getting lost.
 A new ticket that fully describes the problem and how to recreate it, with
 a proper patch, would be much more useful.

-- 
Ticket URL: 
Django 
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
-~--~~~~--~~--~--~---



Re: [Django] #11678: ValueError when passing an extra parameter in URL

2009-08-27 Thread Django
#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: 
Django 
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
-~--~~~~--~~--~--~---



Re: [Django] #11678: ValueError when passing an extra parameter in URL

2009-08-27 Thread Django
#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 |  
---+
Changes (by Alex):

  * status:  reopened => closed
  * resolution:  => duplicate

Comment:

 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.

-- 
Ticket URL: 
Django 
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
-~--~~~~--~~--~--~---



Re: [Django] #11678: ValueError when passing an extra parameter in URL

2009-08-27 Thread Django
#11678: ValueError when passing an extra parameter in URL
---+
  Reporter:  kberkhout | Owner:  nobody 
 
Status:  reopened  | Milestone: 
 
 Component:  django.contrib.admin  |   Version:  1.1
 
Resolution:|  Keywords:  ValueError, 
django.contrib.admin
 Stage:  Unreviewed| Has_patch:  0  
 
Needs_docs:  0 |   Needs_tests:  0  
 
Needs_better_patch:  0 |  
---+
Changes (by mr.ksc...@gmail.com):

  * status:  closed => reopened
  * resolution:  duplicate =>

Comment:

 this may not be a duplicate for #3785.

 as some of the auto-complete widgets for ForeginKeyField are using url
 like "/app/model/search..."
 in which the url is responded by ModelAdmin's __call__ as follow.

 {{{

 # forward request by url
 def __call__(self, request, url):
 if url is None:
 pass
 elif url == 'search':
 return auto_complete(request)
 return super(MyModelAdmin, self).__call__(request, url)
 }}}

 In Django 1.0.2, this works fine with the __call__ request forward. But in
 1.1, above exception raised.

-- 
Ticket URL: 
Django 
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
-~--~~~~--~~--~--~---