Anomalie #3094
ferméPERSON MERGE : crash
0%
Description
AttributeError at /person_merge/
'Person' object has no attribute 'alt_adress_is_prefered'
Request Method: GET
Request URL: http://test.ishtar-archeo.net/person_merge/
Django Version: 1.4.5
Exception Type: AttributeError
Exception Value:
'Person' object has no attribute 'alt_adress_is_prefered'
Exception Location: /srv/ishtarctest/ishtar/ishtar_common/models.py in address_lbl, line 1173
Python Executable: /usr/bin/uwsgi-core
Python Version: 2.7.3
Python Path:
['/srv/ishtarctest/ishtar/',
'.',
'',
'/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']
Server time: ven, 8 Avr 2016 15:46:31 +0200
Template error:
In template /srv/ishtarctest/ishtar/ishtar_common/templates/ishtar/merge_person.html, error at line 11
'Person' object has no attribute 'alt_adress_is_prefered'
1 : {% extends "ishtar/merge.html" %}
2 : {% load url from future %}
3 : {% block merge_field_row %}
4 : {% if form.non_field_errors %}{% for error in form.non_field_errors %}{{error}} {% endfor%}{% endif %}
5 :
6 :
7 : Détails
8 :
9 :
10 : {{form.instance.from_person}} ({{form.instance.from_person.pk}})
11 : {{form.instance.from_person.address_lbl|linebreaksbr}}
12 :
13 :
14 : Détails
15 :
16 :
17 : {{form.instance.to_person}} ({{form.instance.to_person.pk}})
18 : {{form.instance.to_person.address_lbl|linebreaksbr}}
19 :
20 : {{form.b_is_duplicate_a}}
21 : {{form.a_is_duplicate_b}}
Traceback:
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
- response = callback(request, *callback_args, **callback_kwargs)
File "/srv/ishtarctest/ishtar/ishtar_common/views.py" in merge
- context_instance=RequestContext(request))
File "/usr/lib/python2.7/dist-packages/django/shortcuts/init.py" in render_to_response
- return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
File "/usr/lib/python2.7/dist-packages/django/template/loader.py" in render_to_string
- return t.render(context_instance)
File "/usr/lib/python2.7/dist-packages/django/template/base.py" in render
- return self._render(context)
File "/usr/lib/python2.7/dist-packages/django/template/base.py" in _render
- return self.nodelist.render(context)
File "/usr/lib/python2.7/dist-packages/django/template/base.py" in render
- bit = self.render_node(node, context)
File "/usr/lib/python2.7/dist-packages/django/template/debug.py" in render_node
- return node.render(context)
File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py" in render
- return compiled_parent._render(context)
File "/usr/lib/python2.7/dist-packages/django/template/base.py" in _render
- return self.nodelist.render(context)
File "/usr/lib/python2.7/dist-packages/django/template/base.py" in render
- bit = self.render_node(node, context)
File "/usr/lib/python2.7/dist-packages/django/template/debug.py" in render_node
- return node.render(context)
File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py" in render
- return compiled_parent._render(context)
File "/usr/lib/python2.7/dist-packages/django/template/base.py" in _render
- return self.nodelist.render(context)
File "/usr/lib/python2.7/dist-packages/django/template/base.py" in render
- bit = self.render_node(node, context)
File "/usr/lib/python2.7/dist-packages/django/template/debug.py" in render_node
- return node.render(context)
File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py" in render
- result = block.nodelist.render(context)
File "/usr/lib/python2.7/dist-packages/django/template/base.py" in render
- bit = self.render_node(node, context)
File "/usr/lib/python2.7/dist-packages/django/template/debug.py" in render_node
- return node.render(context)
File "/usr/lib/python2.7/dist-packages/django/template/defaulttags.py" in render
- nodelist.append(node.render(context))
File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py" in render
- result = block.nodelist.render(context)
File "/usr/lib/python2.7/dist-packages/django/template/base.py" in render
- bit = self.render_node(node, context)
File "/usr/lib/python2.7/dist-packages/django/template/debug.py" in render_node
- return node.render(context)
File "/usr/lib/python2.7/dist-packages/django/template/debug.py" in render
- output = self.filter_expression.resolve(context)
File "/usr/lib/python2.7/dist-packages/django/template/base.py" in resolve
- obj = self.var.resolve(context)
File "/usr/lib/python2.7/dist-packages/django/template/base.py" in resolve
- value = self._resolve_lookup(context)
File "/usr/lib/python2.7/dist-packages/django/template/base.py" in _resolve_lookup
- current = current()
File "/srv/ishtarctest/ishtar/ishtar_common/models.py" in address_lbl
- if self.alt_adress_is_prefered:
Exception Type: AttributeError at /person_merge/
Exception Value: 'Person' object has no attribute 'alt_adress_is_prefered'