Caught an exception while rendering int object has no attribute id Ori

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
Caught an exception while rendering: 'int' object has no attribute 'id'
Original Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/django/template/debug.py", line 71, in render_node
result = node.render(context)
File "/usr/lib/python2.5/site-packages/django/template/debug.py", line 87, in render
output = force_unicode(self.filter_expression.resolve(context))
File "/usr/lib/python2.5/site-packages/django/utils/encoding.py", line 71, in force_unicode
s = unicode(s)
File "/usr/lib/python2.5/site-packages/django/forms/forms.py", line 356, in __unicode__
return self.as_widget()
File "/usr/lib/python2.5/site-packages/django/forms/forms.py", line 391, in as_widget
return widget.render(name, data, attrs=attrs)
File "/home/tilarids/dev/w/js-core2/lib/ajax_select/fields.py", line 217, in render
current_repr_json.append( """new Array("%s",%s)""" % (repr,obj.id) )
AttributeError: 'int' object has no attribute 'id'