I've found a bug (well, more of a typo really)

7 views
Skip to first unread message

Chris Green

unread,
Mar 15, 2016, 1:10:38 PM3/15/16
to sql...@googlegroups.com
While playing with the demos I got an error:-


chris$ Traceback (most recent call last):
File "/usr/share/doc/python-sqlkit-doc/demo/demo_tour.py", line 198, in selection_changed_cb self.load_module(demo)
File "demo.py", line 95, in load_module execfile(demo.filename, GLOB)
File "ex_23_relations_filter_join.py", line 17, in <module> t.add_filter(movies__title__icontains='il')
File "/usr/lib/python2.7/dist-packages/sqlkit/widgets/common/sqlwidget.py", line 549, in add_filter self.filter_panel.add_filter(active, force_=force_, **kw)
File "/usr/lib/python2.7/dist-packages/sqlkit/widgets/common/sqlfilter.py", line 342, in add_filter path, op, op_str, value, col, join_args = django2components(self.master.mapper, {key: val})
File "/usr/lib/python2.7/dist-packages/sqlkit/db/django_syntax.py", line 266, in django2components col = get_foreign_column(mapper, path=tokens, attr=attr)
File "/usr/lib/python2.7/dist-packages/sqlkit/db/django_syntax.py", line 310, in get_foreign_column return get_column(prop, attr)
File "/usr/lib/python2.7/dist-packages/sqlkit/db/django_syntax.py", line 367, in get_column elif isinstance(prop, RelationhipProperty): NameError: global name 'RelationhipProperty' is not defined


It's just a typo RelationhipProperty should be RelationShipProperty I
assume.

--
Chris Green
Reply all
Reply to author
Forward
0 new messages