• Serge S. Koval's avatar
    Fixed #846, #808. Refactored JOIN logic so it now works with relationship... · db3ee4b0
    Serge S. Koval authored
    Fixed #846, #808. Refactored JOIN logic so it now works with relationship properties instead of tables.
    
    This is partially incompatible change - you will have to update your custom filters. `apply` method now
    accepts additional `alias` argument. `alias` should be used to resolve column in query with specific JOIN path.
    
    Long story short, old code which was looking like this:
    
    ```python
    class MyFilter(SQLABaseFilter):
        def apply(self, query, value):
            return query.filter(self.column == value)
    ```
    
    Should look like this:
    
    ```python
    class MyFilter(SQLABaseFilter):
        def apply(self, query, value, alias=None):
            return query.filter(self.get_column(alias) == value)
    ```
    db3ee4b0
Name
Last commit
Last update
..
auth Loading commit data...
auth-flask-login Loading commit data...
auth-mongoengine Loading commit data...
babel Loading commit data...
file Loading commit data...
forms Loading commit data...
geo-alchemy Loading commit data...
layout Loading commit data...
layout-bootstrap3 Loading commit data...
menu-external-links Loading commit data...
methodview Loading commit data...
mongoengine Loading commit data...
multi Loading commit data...
peewee Loading commit data...
pymongo Loading commit data...
quickstart Loading commit data...
rediscli Loading commit data...
simple Loading commit data...
sqla Loading commit data...
sqla-custom-filter Loading commit data...
sqla-inline Loading commit data...
wysiwyg Loading commit data...
__init__.py Loading commit data...