The error is fairly descriptive: it's trying to convert something to
unicode, but is only receiving a Long integer value.
The problem lies in the __unicode__ method of the Asset field. This
method isn't returning a unicode value as it should, but the contents
of the Asset_Number field - which is a PostiveInteger. Django uses the
__unicode__ method to display the values in the drop-down field for
Asset_idAsset. (Weird field names, by the way: Django/Python
convention is to use lower_case_with_underscores for field names, and
CapsCase for class/model names.)
You should rewrite it along these lines:
def __unicode__(self):
return u'%s' % self.Asset_Number
--
DR