#5919: 6655 formset update makes adding imposible (when model have inlines)
----------------------------------------+-----------------------------------
Reporter:  LongMan <[EMAIL PROTECTED]>  |       Owner:  nobody         
  Status:  new                          |   Component:  Admin interface
 Version:  newforms-admin               |    Keywords:  inline add     
   Stage:  Unreviewed                   |   Has_patch:  0              
----------------------------------------+-----------------------------------
 From 6654 to 6655 there were changes in the branch:
 {{{
 U    django/newforms/models.py
 A    tests/modeltests/model_formsets
 A    tests/modeltests/model_formsets/__init__.py
 A    tests/modeltests/model_formsets/models.py
 }}}
 Since 6655 i can't  add new objects of models that have `inlines` options.
 When options without `intlines` it is all right.
 Error is:
 {{{
 TypeError at /admin/gmaps/point/add/
 __init__() takes at least 2 arguments (1 given)
 Request Method:         GET
 Request URL:    http://localhost:8000/admin/gmaps/point/add/
 Exception Type:         TypeError
 Exception Value:        __init__() takes at least 2 arguments (1 given)
 Exception Location:     /home/longman/django-svn/newforms-
 admin/django/contrib/admin/options.py in add_view, line 505
 Python Executable:      /usr/bin/python
 Python Version:         2.5.1
 }}}
 Traceback:
 {{{
 Traceback (most recent call last):
 File "/home/longman/django-svn/newforms-
 admin/django/core/handlers/base.py" in _real_get_response
   81. response = callback(request, *callback_args, **callback_kwargs)
 File "/home/longman/django-svn/newforms-
 admin/django/contrib/admin/sites.py" in root
   136. return self.model_page(request, *url.split('/', 2))
 File "/home/longman/django-svn/newforms-
 admin/django/contrib/admin/sites.py" in model_page
   153. return admin_obj(request, rest_of_url)
 File "/home/longman/django-svn/newforms-
 admin/django/contrib/admin/options.py" in __call__
   251. return self.add_view(request)
 File "/home/longman/django-svn/newforms-
 admin/django/contrib/admin/options.py" in add_view
   505. inline_formset = FormSet()

   TypeError at /admin/gmaps/point/add/
   __init__() takes at least 2 arguments (1 given)
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5919>
Django Code <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