TypeError at /admin/topmenu/menu/add/
'message' is an invalid keyword argument for this function
Request Method: POST
Request URL: http://127.0.0.1:8000/admin/topmenu/menu/add/
Django Version: 1.2.1
Exception Type: TypeError
Exception Value:
'message' is an invalid keyword argument for this function
Exception Location: /usr/lib/python2.6/site-packages/django/db/models/base.py in __init__, line 341
Python Executable: /usr/bin/python
Python Version: 2.6.5
Python Path: ['/home/werevolff/python/steamnet', '/usr/lib/python2.6/site-packages/django_cms-2.0.2-py2.6.egg', '/usr/lib/python2.6/site-packages/South-0.5-py2.6.egg', '/usr/lib/ooo/basis-link/program', '/usr/lib/python26.zip', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/site-packages', '/usr/lib/python2.6/site-packages/PIL', '/usr/lib/python2.6/site-packages/gst-0.10', '/usr/lib/python2.6/site-packages/gtk-2.0', '/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode']
Server time: Чтв, 5 Авг 2010 10:01:00 +1100
Traceback Switch to copy-and-paste view
/usr/lib/python2.6/site-packages/django/core/handlers/base.py in get_response
response = callback(request, *callback_args, **callback_kwargs) ...
▶ Local vars
/usr/lib/python2.6/site-packages/django/contrib/admin/options.py in wrapper
return self.admin_site.admin_view(view)(*args, **kwargs) ...
▶ Local vars
/usr/lib/python2.6/site-packages/django/utils/decorators.py in _wrapped_view
response = view_func(request, *args, **kwargs) ...
▶ Local vars
/usr/lib/python2.6/site-packages/django/views/decorators/cache.py in _wrapped_view_func
response = view_func(request, *args, **kwargs) ...
▶ Local vars
/usr/lib/python2.6/site-packages/django/contrib/admin/sites.py in inner
return view(request, *args, **kwargs) ...
▶ Local vars
/usr/lib/python2.6/site-packages/django/utils/decorators.py in _wrapper
return decorator(bound_func)(*args, **kwargs) ...
▶ Local vars
/usr/lib/python2.6/site-packages/django/utils/decorators.py in _wrapped_view
response = view_func(request, *args, **kwargs) ...
▶ Local vars
/usr/lib/python2.6/site-packages/django/utils/decorators.py in bound_func
return func(self, *args2, **kwargs2) ...
▶ Local vars
/usr/lib/python2.6/site-packages/django/db/transaction.py in _commit_on_success
res = func(*args, **kw) ...
▶ Local vars
/usr/lib/python2.6/site-packages/django/contrib/admin/options.py in add_view
return self.response_add(request, new_object) ...
▶ Local vars
/usr/lib/python2.6/site-packages/django/contrib/admin/options.py in response_add
self.message_user(request, msg) ...
▶ Local vars
/usr/lib/python2.6/site-packages/django/contrib/admin/options.py in message_user
messages.info(request, message) ...
▶ Local vars
/usr/lib/python2.6/site-packages/django/contrib/messages/api.py in info
fail_silently=fail_silently) ...
▶ Local vars
/usr/lib/python2.6/site-packages/django/contrib/messages/api.py in add_message
return request.user.message_set.create(message=message) ...
▶ Local vars
/usr/lib/python2.6/site-packages/django/db/models/fields/related.py in create
return super(RelatedManager, self).using(db).create(**kwargs) ...
▶ Local vars
/usr/lib/python2.6/site-packages/django/db/models/query.py in create
obj = self.model(**kwargs) ...
▶ Local vars
/usr/lib/python2.6/site-packages/django/db/models/base.py in __init__
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) ...
▶ Local vars
РЕШЕНО!
Оказывается, Django не всё-равно как называются модели. В данном случае, существовало приложение guestbook с моделью Message. В результате, Django терялась. После переименования модели проблема исчезла.