Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fix fetching models from complex RawQuerySets in SQLite #2069
SQLite will sometimes (returning columns from subqueries or views for example) return column names in the form
This meant that RawQuerySet can't match up the columns when trying to create model instances, and raises
This change introduces a
This is the same behaviour accounted for in SQLAlchemy here: https://github.com/zzzeek/sqlalchemy/blob/4663ec98b226a7d495846f0d89c646110705bb30/lib/sqlalchemy/dialects/sqlite/base.py#L591