4 Commits

Author SHA1 Message Date
Daniel Quinn
27db4f7e51 refactor: code cleanup
I hate single quotes.
2017-03-25 16:20:59 +00:00
Daniel Quinn
294b8abc3f Fixes #164
There appears to be quite the mess out there with regard to how DRF
handles filtering.  DRF has its own built-in stuff, but recommends
django_filter for the advanced stuff, which has its own overriding
module that explodes with this message when used as per the
documentation:

  AttributeError: 'NoneType' object has no attribute 'DjangoFilterBackend'

Then there's djangorestframework-filter, another package that claims to
do the same thing, that does everything just differently enough that
nothing worked while I had it enabled.

I ended up using django_filter, but doing so importing each element
explicitly, rather than just using the recommended (and broken, at least
in this project) method of:

    import django_filter.restframework as fitlers

Anyway, this should bring the dependencies up to date, and strips out a
lot of redundant code.
2017-01-01 16:36:42 +00:00
Daniel Quinn
8c5cb163a1 The API now supports filtering docs by tag & correspondent, as well as ordering 2016-03-12 20:45:13 +00:00
Daniel Quinn
1ef119eb82 Added basic filtering + search 2016-03-09 01:05:46 +00:00