diff options
Diffstat (limited to '')
-rw-r--r-- | archivist/peewee_fixes.py | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/archivist/peewee_fixes.py b/archivist/peewee_fixes.py index ff914da..3b9fc2e 100644 --- a/archivist/peewee_fixes.py +++ b/archivist/peewee_fixes.py @@ -1,15 +1,3 @@ -from peewee import QueryCompiler, strip_parens, ForeignKeyField - __all__ = [] -def _parse_select_query(self, node, alias_map, conv): - clone = node.clone() - if not node._explicit_selection: - if conv and isinstance(conv, ForeignKeyField): - clone._select = (conv.to_field,) - else: - clone._select = clone.model_class._meta.get_primary_key_fields() - sub, params = self.generate_select(clone, alias_map) - return '(%s)' % strip_parens(sub), params - -QueryCompiler._parse_select_query = _parse_select_query +# Nothing to fix atm |