При попытке сохранить любую запись любой модели в Django Admin, получаю ошибку "TypeError: msg() takes exactly 3 arguments (4 given)".
Django запускается на Windows, Python 2.7, со следующими версиями пакетов:
Django==1.6.2
Pillow==2.3.0
South==0.8.4
django-admin-tools==0.5.1
django-jquery==1.9.1
django-tinymce==1.5.2
django-tinymcewrapper==0.4.2
mysql-python==1.2.5
pytils==0.3
При этом на продакшене, где Debian 6, Python 2.6 и такие же версии пакетов, все в порядке.
Вот такой при этом листинг сообщения об ошибке:
Environment:
Request Method: POST
Request URL: http://localhost:8000/admin/auth/user/1/
Django Version: 1.6.2
Python Version: 2.7.6
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'jquery',
'admin_tools',
'admin_tools.theming',
'admin_tools.menu',
'admin_tools.dashboard',
'django.contrib.admin',
'jethelix',
'fresh_app',
'tinymce',
'tinymcewrapper',
'south',
'pytils')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'fresh_app.middleware.FeedbackFormMiddleware')
Traceback:
File "D:\VirtualEnv\AdFresh\lib\site-packages\django\core\handlers\base.py" in get_response
114. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "D:\VirtualEnv\AdFresh\lib\site-packages\django\contrib\admin\options.py" in wrapper
432. return self.admin_site.admin_view(view)(*args, **kwargs)
File "D:\VirtualEnv\AdFresh\lib\site-packages\django\utils\decorators.py" in _wrapped_view
99. response = view_func(request, *args, **kwargs)
File "D:\VirtualEnv\AdFresh\lib\site-packages\django\views\decorators\cache.py" in _wrapped_view_func
52. response = view_func(request, *args, **kwargs)
File "D:\VirtualEnv\AdFresh\lib\site-packages\django\contrib\admin\sites.py" in inner
198. return view(request, *args, **kwargs)
File "D:\VirtualEnv\AdFresh\lib\site-packages\django\utils\decorators.py" in _wrapper
29. return bound_func(*args, **kwargs)
File "D:\VirtualEnv\AdFresh\lib\site-packages\django\utils\decorators.py" in _wrapped_view
99. response = view_func(request, *args, **kwargs)
File "D:\VirtualEnv\AdFresh\lib\site-packages\django\utils\decorators.py" in bound_func
25. return func(self, *args2, **kwargs2)
File "D:\VirtualEnv\AdFresh\lib\site-packages\django\db\transaction.py" in inner
339. return func(*args, **kwargs)
File "D:\VirtualEnv\AdFresh\lib\site-packages\django\contrib\admin\options.py" in change_view
1234. return self.response_change(request, new_object)
File "D:\VirtualEnv\AdFresh\lib\site-packages\django\contrib\admin\options.py" in response_change
993. self.message_user(request, msg, messages.SUCCESS)
Exception Type: TypeError at /admin/auth/user/1/
Exception Value: msg() takes exactly 3 arguments (4 given)