Commits

Ralph Bean committed a6f6485

Elixir compatibility.

  • Participants
  • Parent commits 85906c3

Comments (0)

Files changed (2)

 
 setup(
     name='tw2.jqplugins.jqgrid',
-    version='2.0b15',
+    version='2.0b16',
     description='toscawidgets2 wrapper for the jQuery grid plugin',
     long_description=long_description,
     author='Ralph Bean',

tw2/jqplugins/jqgrid/widgets/sqla.py

         _options = self.options
         super(SQLAjqGridWidget, self).prepare()
 
-        pkey = self.entity.__mapper__.primary_key[0].key
+        pkey = sa.orm.class_mapper(self.entity).primary_key[0].key
         _options.update({
             'pager': "%s_pager" % self.id,
             'caption': tw2.core.util.name2label(self.entity.__name__),