j2labs/dictshield — Issue #58: Add method to return just fields and values
Author: dharmeshs
Created: 2012-01-11 19:54:17+00:00
State: open

When using a model to build a SQL query (and possibly other use cases), it's common to want to iterate over just the fields and their values in the dictionary.

A method that excluded key/value pairs that are not a field in the model (like _cls, _types, etc.) would be helpful.