Commits

migajek committed bed8391 Draft

fixed Grid's class name generation

Comments (0)

Files changed (1)

tastypie_jqgrid/grids.py

             initial_options = frozenset(dir(options))
             for base in bases:
                 if hasattr(base, opt_attr_name):
-                    for name, value in base._grid_options:
-                        if name not in initial_options:
-                            setattr(options, name, value)
+                    for fname, value in base._grid_options:
+                        if fname not in initial_options:
+                            setattr(options, fname, value)
     
             attr[opt_attr_name] = JqGridOptions(options)
         return super(MgGridMetaclass, cls).__new__(cls, name, bases, attr)