Anomalie #1369
ferméGLOBAL CRASH : both django admin and ishtar instance after adding a new user
0%
Description
The user was selected as both S. responsible and public acces.
FieldError at /admin/ishtar_common/ishtaruser/14/
Cannot resolve keyword 'wizard' into field. Choices are: available, comment, id, label, person, rights, txt_idx
Request Method: GET
Request URL: http://192.168.100.204/admin/ishtar_common/ishtaruser/14/
Django Version: 1.4.5
Exception Type: FieldError
Exception Value:
Cannot resolve keyword 'wizard' into field. Choices are: available, comment, id, label, person, rights, txt_idx
Exception Location: /usr/lib/python2.7/dist-packages/django/db/models/sql/query.py in setup_joins, line 1316
Python Executable: /usr/bin/python
Python Version: 2.7.3
Python Path:
['/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PIL',
'/usr/lib/pymodules/python2.7',
'/srv/ishtar/',
'/usr/local/lib/',
'/usr/local/lib/']
Server time: jeu, 29 Aoû 2013 10:22:23 +0200
Traceback Switch to copy-and-paste view
/usr/lib/python2.7/dist-packages/django/core/handlers/base.py in get_response
response = response.render()
...
▶ Local vars
/usr/lib/python2.7/dist-packages/django/template/response.py in render
self._set_content(self.rendered_content)
...
▶ Local vars
/usr/lib/python2.7/dist-packages/django/template/response.py in rendered_content
context = self.resolve_context(self.context_data)
...
▶ Local vars
/usr/lib/python2.7/dist-packages/django/template/response.py in resolve_context
return RequestContext(self._request, context, current_app=self._current_app)
...
▶ Local vars
/usr/lib/python2.7/dist-packages/django/template/context.py in __init__
self.update(processor(request))
...
▶ Local vars
/srv/ishtar/ishtar_common/context_processors.py in get_base_context
menu.init()
...
▶ Local vars
/srv/ishtar/ishtar_common/menus.py in init
main_menu.set_items(self.user, self.items)
...
▶ Local vars
/srv/ishtar/ishtar_common/menu_base.py in set_items
self.available = self.can_be_available(user)
...
▶ Local vars
/srv/ishtar/ishtar_common/menu_base.py in can_be_available
if child.can_be_available(user):
...
▶ Local vars
/srv/ishtar/ishtar_common/menu_base.py in can_be_available
if child.can_be_available(user):
...
▶ Local vars
/srv/ishtar/ishtar_common/menu_base.py in can_be_available
if user.has_perm(access_control, self.model) or \
...
▶ Local vars
/usr/lib/python2.7/dist-packages/django/contrib/auth/models.py in has_perm
return _user_has_perm(self, perm, obj)
...
▶ Local vars
/usr/lib/python2.7/dist-packages/django/contrib/auth/models.py in _user_has_perm
if backend.has_perm(user, perm, obj):
...
▶ Local vars
/srv/ishtar/ishtar_common/backend.py in has_perm
if ishtar_user.has_right('administrator'):
...
▶ Local vars
/srv/ishtar/ishtar_common/models.py in has_right
return self.person.has_right('administrator')
...
▶ Local vars
/srv/ishtar/ishtar_common/models.py in has_right
self.person_types.filter(wizard__url_name=right_name).count())
...
▶ Local vars
/usr/lib/python2.7/dist-packages/django/db/models/manager.py in filter
return self.get_query_set().filter(*args, **kwargs)
...
▶ Local vars
/usr/lib/python2.7/dist-packages/django/db/models/query.py in filter
return self._filter_or_exclude(False, *args, **kwargs)
...
▶ Local vars
/usr/lib/python2.7/dist-packages/django/db/models/query.py in _filter_or_exclude
clone.query.add_q(Q(*args, **kwargs))
...
▶ Local vars
/usr/lib/python2.7/dist-packages/django/db/models/sql/query.py in add_q
can_reuse=used_aliases, force_having=force_having)
...
▶ Local vars
/usr/lib/python2.7/dist-packages/django/db/models/sql/query.py in add_filter
process_extras=process_extras)
...
▶ Local vars
/usr/lib/python2.7/dist-packages/django/db/models/sql/query.py in setup_joins
"Choices are: %s" % (name, ", ".join(names)))
...
▶ Local vars
Mis à jour par Yann Le Jeune il y a plus de 11 ans
This is for user 14, it's all fine when i am logged in.