Git Product home page Git Product logo

drf-mongo-filters's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

drf-mongo-filters's Issues

Requires Django==1.7

This package has a hard locked dependency on Django 1.7 which is rather outdated...

Set default filter_class if not specified

If someone want use just a default ModelFilterset and don't create a class for that, should do it. Please add this code.

@@ -6,7 +6,9 @@ class MongoFilterBackend(BaseFilterBackend):
         filter_class = getattr(view,'filter_class', None)
 
         if filter_class is None:
-            return queryset
+            filter_class = ModelFilterset
+            filter_class.Meta = type("Meta", (object,), {})
+            filter_class.Meta.model = view.serializer_class.Meta.model

This package not suport new versions of DRF and Django

ERROR: drf-mongo-filters 1.0 has requirement Django==1.7., but you'll have django 2.0.7 which is incompatible.
ERROR: drf-mongo-filters 1.0 has requirement django-rest-framework-mongoengine==2.
, but you'll have django-rest-framework-mongoengine 3.3.1 which is incompatible.
ERROR: drf-mongo-filters 1.0 has requirement djangorestframework==3.0., but you'll have djangorestframework 3.8.2 which is incompatible.
ERROR: drf-mongo-filters 1.0 has requirement mongoengine==0.8.
, but you'll have mongoengine 0.18.2 which is incompatible.

remove dependency on DRF-mongo

The only point used is:
from rest_framework_mongoengine.utils import get_field_info

sufficiently replaceable with model._fields_ordered

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.