I have 2 models:
class Bird(Base):
__tablename__ = 'bird'
__label__ = _(u"Вид")
__plural__ = _(u"Виды")
id = Column(Integer, primary_key=True, label=_(u"Номер записи"))
name_lat = Column(Unicode, unique=True, label=_(u"Латинское название"))
name_rus = Column(Unicode, label=_(u"Русское название"))
def __unicode__(self):
return u'%s (%s)' % (self.name_lat, self.name_rus)
class Report(Base):
...
bird = relationship(Bird, backref=backref('child', uselist=True), uselist=False)
When I try to perfom sorting records in jqgrid (fa.jquery) by bird column of Report model I get an error: RuntimeError: maximum recursion depth exceeded. How I can fix this?