I am using Django 1.0alpha and I'm attempting to modify the add/change behavior of my ModelAdmin. As such, I'm following this example found on the Django wiki:
http://code.djangoproject.com/wiki/NewformsHOWTO#Q:HowcanIchangewhereIgetsentaftersavinganewentrytothedatabase Unfortunately, the method definition leads to the following error: >> TypeError at /admin/person/book/add/ >> save_add() takes exactly 6 arguments (5 given) After reviewing the stack trace, the "options.py" file found in django.contrib.admin is only passing 4 explicit arguments (Line 487 in today's SVN trunk): if all_valid(inline_formsets) and form.is_valid(): return self.save_add(request, form, inline_formsets, '../%s/') The example in the wiki includes a reference to a "model" parameter which isn't found on Line 487: def save_add(self, request, model, form, formsets, post_url_continue): pass If I remove that parameter from the method definition, a new error pops-up: >> AttributeError at /admin/person/book/add/ >> 'NoneType' object has no attribute 'has_header' At this point, I've either encountered a bug or I'm not doing something right. Any help you can provide is appreciated! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---