sqlalchemy_utils.functions.get_mapper.relationships.keys

Here are the examples of the python api sqlalchemy_utils.functions.get_mapper.relationships.keys taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

Example 1

Project: sqlalchemy-json-api Source File: query_builder.py
    def is_relationship_field(self, field):
        return field in get_mapper(self.model).relationships.keys()