kashifpk / PyCK

Python Code Karigar - A web framework aimed at being easy to use and powerful
http://pyck.compulife.com.pk
Other
4 stars 0 forks source link

SQLAlchemy version >= 1.0 fixes #54

Closed kashifpk closed 9 years ago

kashifpk commented 9 years ago

SQLAlchemy >= 1.0 made some backward incompatible changes that seems to have broke the admin interface. One example is the use of is_primary() method used in pyck.forms package which it seems is no longer present for field objects. Look into and test the workings of admin, CRUD and forms and fix as needed.

kashifpk commented 9 years ago

One occurrence to look into is:

File "/usr/local/lib/python2.7/dist-packages/PyCK-0.9.8.3-py2.7.egg/pyck/forms/__init__.py", line 199, in dojo_model_form                                                                                                                         
    if 0 == len(prop.columns[0].foreign_keys) and prop.is_primary():