On Thu, 2007-05-10 at 23:46 +0200, Baurzhan Ismagulov wrote: > Hello, > > I've upgraded r3709 to 0.96 and started getting the following error: > > Traceback (most recent call last): > > File "/var/lib/python-support/python2.4/django/core/handlers/base.py", line > 77, in get_response > response = callback(request, *callback_args, **callback_kwargs) > > File > "/var/lib/python-support/python2.4/django/contrib/admin/views/decorators.py", > line 55, in _checklogin > return view_func(request, *args, **kwargs) > > File "/var/lib/python-support/python2.4/django/views/decorators/cache.py", > line 39, in _wrapped_view_func > response = view_func(request, *args, **kwargs) > > File > "/var/lib/python-support/python2.4/django/contrib/admin/views/main.py", line > 254, in add_stage > new_object = manipulator.save(new_data) > > File "/var/lib/python-support/python2.4/django/db/models/manipulators.py", > line 105, in save > f.save_file(new_data, new_object, self.change and self.original_object or > None, self.change, rel=False, save=False) > > TypeError: save_file() got an unexpected keyword argument 'save' > > This happens when I try to save a new record to a table using the admin > interface. I've looked at django/db/models/fields/__init__.py, the > method does seem to have the save kwarg. What is the problem?
Sounds like your code is somehow inconsistent. The "save" parameter was added when ticket #639 was fixed (a little bit before 0.96 was released). There is a chance that some old *.pyc files from the pre-update version are getting in the way in your source tree (it shouldn't be happening, but it might be the case). Might depend on how you did the upgrade. Try removing old *.pyc files. Other than that, I don't really have any idea why you would be seeing this problem on a standard Django install. The code certainly seems to work and I haven't had any problems with it. So there is something "special" about your installation. That's not much help, except to encourage you to look closely at what might be unique about your particular setup. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" 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-users?hl=en -~----------~----~----~----~------~----~------~--~---

