The traceback from the debug logs :
Traceback (most recent call last):
File "/var/www/notes/lib/python2.7/site-packages/django/core/handlers/base.py", line 113, in get_response
response = callback(request, _callback_args, _callback_kwargs)
File "/var/www/notes/cendari/views.py", line 903, in editNoteCendari
return render_to_response( 'noteCendariEdit.html', o, context_instance=RequestContext(request))
File "/var/www/notes/lib/python2.7/site-packages/django/shortcuts/init.py", line 29, in render_to_response
return HttpResponse(loader.render_to_string(_args, _kwargs), **httpresponse_kwargs)
File "/var/www/notes/lib/python2.7/site-packages/django/template/loader.py", line 177, in render_to_string
return t.render(context_instance)
File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 140, in render
return self._render(context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 134, in _render
return self.nodelist.render(context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 830, in render
bit = self.render_node(node, context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node
return node.render(context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/loader_tags.py", line 124, in render
return compiled_parent._render(context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 134, in _render
return self.nodelist.render(context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 830, in render
bit = self.render_node(node, context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node
return node.render(context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/loader_tags.py", line 124, in render
return compiled_parent._render(context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 134, in _render
return self.nodelist.render(context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 830, in render
bit = self.render_node(node, context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node
return node.render(context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/loader_tags.py", line 124, in render
return compiled_parent._render(context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 134, in _render
return self.nodelist.render(context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 830, in render
bit = self.render_node(node, context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node
return node.render(context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/loader_tags.py", line 63, in render
result = block.nodelist.render(context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 830, in render
bit = self.render_node(node, context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node
return node.render(context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/loader_tags.py", line 63, in render
result = block.nodelist.render(context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 830, in render
bit = self.render_node(node, context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node
return node.render(context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/loader_tags.py", line 63, in render
result = block.nodelist.render(context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 830, in render
bit = self.render_node(node, context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node
return node.render(context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/loader_tags.py", line 63, in render
result = block.nodelist.render(context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 830, in render
bit = self.render_node(node, context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node
return node.render(context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/defaulttags.py", line 285, in render
return nodelist.render(context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 830, in render
bit = self.render_node(node, context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node
return node.render(context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 881, in render
output = self.filter_expression.resolve(context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 578, in resolve
obj = self.var.resolve(context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 728, in resolve
value = self._resolve_lookup(context)
File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 779, in _resolve_lookup
current = current()
File "/var/www/notes/editorsnotes/main/models/notes.py", line 65, in get_all_related_topics_ids
topics += [ta.topic.pk for ta in self.related_topics.all()]
AttributeError: 'NoneType' object has no attribute 'pk'
reported by EmmanouilGiannisakis on 2015-04-30T18:04:45.298+0200
The traceback from the debug logs : Traceback (most recent call last): File "/var/www/notes/lib/python2.7/site-packages/django/core/handlers/base.py", line 113, in get_response response = callback(request, _callback_args, _callback_kwargs) File "/var/www/notes/cendari/views.py", line 903, in editNoteCendari return render_to_response( 'noteCendariEdit.html', o, context_instance=RequestContext(request)) File "/var/www/notes/lib/python2.7/site-packages/django/shortcuts/init.py", line 29, in render_to_response return HttpResponse(loader.render_to_string(_args, _kwargs), **httpresponse_kwargs) File "/var/www/notes/lib/python2.7/site-packages/django/template/loader.py", line 177, in render_to_string return t.render(context_instance) File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 140, in render return self._render(context) File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 134, in _render return self.nodelist.render(context) File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 830, in render bit = self.render_node(node, context) File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node return node.render(context) File "/var/www/notes/lib/python2.7/site-packages/django/template/loader_tags.py", line 124, in render return compiled_parent._render(context) File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 134, in _render return self.nodelist.render(context) File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 830, in render bit = self.render_node(node, context) File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node return node.render(context) File "/var/www/notes/lib/python2.7/site-packages/django/template/loader_tags.py", line 124, in render return compiled_parent._render(context) File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 134, in _render return self.nodelist.render(context) File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 830, in render bit = self.render_node(node, context) File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node return node.render(context) File "/var/www/notes/lib/python2.7/site-packages/django/template/loader_tags.py", line 124, in render return compiled_parent._render(context) File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 134, in _render return self.nodelist.render(context) File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 830, in render bit = self.render_node(node, context) File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node return node.render(context) File "/var/www/notes/lib/python2.7/site-packages/django/template/loader_tags.py", line 63, in render result = block.nodelist.render(context) File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 830, in render bit = self.render_node(node, context) File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node return node.render(context) File "/var/www/notes/lib/python2.7/site-packages/django/template/loader_tags.py", line 63, in render result = block.nodelist.render(context) File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 830, in render bit = self.render_node(node, context) File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node return node.render(context) File "/var/www/notes/lib/python2.7/site-packages/django/template/loader_tags.py", line 63, in render result = block.nodelist.render(context) File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 830, in render bit = self.render_node(node, context) File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node return node.render(context) File "/var/www/notes/lib/python2.7/site-packages/django/template/loader_tags.py", line 63, in render result = block.nodelist.render(context) File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 830, in render bit = self.render_node(node, context) File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node return node.render(context) File "/var/www/notes/lib/python2.7/site-packages/django/template/defaulttags.py", line 285, in render return nodelist.render(context) File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 830, in render bit = self.render_node(node, context) File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 844, in render_node return node.render(context) File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 881, in render output = self.filter_expression.resolve(context) File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 578, in resolve obj = self.var.resolve(context) File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 728, in resolve value = self._resolve_lookup(context) File "/var/www/notes/lib/python2.7/site-packages/django/template/base.py", line 779, in _resolve_lookup current = current() File "/var/www/notes/editorsnotes/main/models/notes.py", line 65, in get_all_related_topics_ids topics += [ta.topic.pk for ta in self.related_topics.all()] AttributeError: 'NoneType' object has no attribute 'pk'
reported by EmmanouilGiannisakis on 2015-04-30T18:04:45.298+0200