Skip to content

Conversation

@miki725
Copy link
Owner

@miki725 miki725 commented Sep 7, 2015

Initial work for SQLAlchemy support.

closes #2, #5 and #7

* each filter backend now defines which lookups it supports which each individual filter honors. this change allows for other filter backends with slightly different lookups support. even in DjangoFilterBackend, support for "search" lookup was removed since its only MySQL supported.
* DRF integration now validates that the queryset and filterset models match just before filtering. the reason is that now filter backend extracts a model from the queryset. that is necessary since since we can't assume that queryset.model will work across other filtering sources such as SQLAlchemy.
that allows to use SQLAlchemy to query data from db in addition to using Django ORM. this will be used by the upcoming SQLAlchemy support
miki725 added a commit that referenced this pull request Sep 12, 2015
@miki725 miki725 merged commit 5b161db into master Sep 12, 2015
@miki725 miki725 deleted the alchemy branch September 12, 2015 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SQLAlchemy backend support

2 participants