#5545 closed (duplicate)
Changeset 6342 broke newforms-admin change/add functionality
| Reported by: | lukas einfachkaffee de | Owned by: | nobody |
|---|---|---|---|
| Component: | contrib.admin | Version: | newforms-admin |
| Severity: | Keywords: | ||
| Cc: | lukas@… | Triage Stage: | Unreviewed |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
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.
Change History (2)
comment:1 by , 18 years ago
| Resolution: | → duplicate |
|---|---|
| Status: | new → closed |
comment:2 by , 18 years ago
Thank you for pointing me to the root of the problem, I didn't find #5505 before. And I happily live with that risk of the bleeding edge again :)
Note:
See TracTickets
for help on using tickets.
Please svn up to r6341.
ForeignKeys andManyToManyFields are broken in the admin after that revision. This is a duplicate of #5505. I'm not going to roll back the branch for this one. Sorry, welcome to the bleeding edge ;) The are a few ways to fix it, but it should be fixed in trunk.