#8899: Type: () should be []
------------------------------------+---------------------------------------
          Reporter:  anonymous      |         Owner:  nobody
            Status:  reopened       |     Milestone:        
         Component:  Documentation  |       Version:  1.0   
        Resolution:                 |      Keywords:        
             Stage:  Unreviewed     |     Has_patch:  0     
        Needs_docs:  0              |   Needs_tests:  0     
Needs_better_patch:  0              |  
------------------------------------+---------------------------------------
Changes (by chrisdpratt):

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

Comment:

 Actually, I followed the docs and used a tuple and received the following
 error:

 Traceback:
 File "/Library/Python/2.5/site-packages/django/core/handlers/base.py" in
 get_response
   86.                 response = callback(request, *callback_args,
 **callback_kwargs)
 File "/Library/Python/2.5/site-packages/django/contrib/admin/sites.py" in
 root
   158.                 return self.model_page(request, *url.split('/', 2))
 File "/Library/Python/2.5/site-packages/django/views/decorators/cache.py"
 in _wrapped_view_func
   44.         response = view_func(request, *args, **kwargs)
 File "/Library/Python/2.5/site-packages/django/contrib/admin/sites.py" in
 model_page
   177.         return admin_obj(request, rest_of_url)
 File "/Library/Python/2.5/site-packages/django/contrib/admin/options.py"
 in __call__
   191.             return self.add_view(request)
 File "/Library/Python/2.5/site-packages/django/db/transaction.py" in
 _commit_on_success
   238.                 res = func(*args, **kw)
 File "/Library/Python/2.5/site-packages/django/contrib/admin/options.py"
 in add_view
   486.         ModelForm = self.get_form(request)
 File "/Library/Python/2.5/site-packages/django/contrib/admin/options.py"
 in get_form
   273.             "exclude": exclude + kwargs.get("exclude", []),

 Exception Type: TypeError at /lifestyle/admin/lifestyle/post/add/
 Exception Value: can only concatenate tuple (not "list") to tuple


 As a list, no errors are generated. If it's supposed to allow both types,
 then that functionality is broken, so one of Django or the docs needs to
 be fixed.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8899#comment:2>
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 [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