#5545: Changeset 6342 broke newforms-admin change/add functionality
-----------------------------------+----------------------------------------
Reporter:  lukas einfachkaffee de  |       Owner:  nobody         
  Status:  new                     |   Component:  Admin interface
 Version:  newforms-admin          |    Keywords:                 
   Stage:  Unreviewed              |   Has_patch:  0              
-----------------------------------+----------------------------------------
 I don't know what exactly caused it, but I 'nailed' it down to changeset
 6342 - since than, I can't add nor change Objects in newforms-admin
 anymore. Even with a model as simple as

 {{{
 class ConfigScheme(models.Model):
     """
     Defines a Scheme for UID, GID, Maildir of Domains
     """
     name = models.CharField('ConfigScheme Name', maxlength=200)
     owner = models.ForeignKey(DjangoUser)
     maildirprefix = models.CharField('Maildir Prefix', maxlength=300)
     uid = models.IntegerField('vMail UID')
     gid = models.IntegerField('vMail GID')

     def __unicode__(self):
         return self.name
 }}}

 Where DjangoUser is django's user model, I get a TypeError:
 {{{
 Traceback (most recent call last):
 File "/srv/managedApps/django_newforms-admin/django/core/handlers/base.py"
 in _real_get_response
   81. response = callback(request, *callback_args, **callback_kwargs)
 File "/srv/managedApps/django_newforms-
 admin/django/contrib/admin/sites.py" in root
   136. return self.model_page(request, *url.split('/', 2))
 File "/srv/managedApps/django_newforms-
 admin/django/contrib/admin/sites.py" in model_page
   153. return admin_obj(request, rest_of_url)
 File "/srv/managedApps/django_newforms-
 admin/django/contrib/admin/options.py" in __call__
   251. return self.change_view(request, unquote(url))
 File "/srv/managedApps/django_newforms-
 admin/django/contrib/admin/options.py" in change_view
   535. form = ModelForm()
 File "/srv/managedApps/django_newforms-admin/django/newforms/forms.py" in
 __init__
   81. self.fields = self.base_fields.copy()
 File "/srv/managedApps/django_newforms-admin/django/newforms/forms.py" in
 copy
   34. return SortedDictFromList([(k, copy.deepcopy(v)) for k, v in
 self.items()])
 File "/srv/managedApps/django_newforms-admin/django/newforms/fields.py" in
 __deepcopy__
   107. result.widget = copy.deepcopy(self.widget, memo)

   TypeError at /mokel2/admin/mail/configscheme/1/
   function() takes at least 2 arguments (0 given)
 }}}

 I'd happily provide more info if needed.

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