qwiglydee / drf-mongo-filters Goto Github PK
View Code? Open in Web Editor NEW[UNMAINTAINED] Filtering tools for django rest framework mongoengine.
License: GNU General Public License v2.0
[UNMAINTAINED] Filtering tools for django rest framework mongoengine.
License: GNU General Public License v2.0
Whenever you're happy to make this public it'd be worth adding to the REST framework grid on Django Packages.
๐
This package has a hard locked dependency on Django 1.7 which is rather outdated...
and kill the repo
geo_within_box
geo_within_circle
geo_within_sphere
Use form fields instead of serializer's.
Match Filter and FilterSet specs.
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
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.
After installing drf-mongo-filter
, my Django
, restframework
, pymongo
and mongoengine
versions were all downgraded.
Please use ==
instead of ~=
in the requirements file or issue a warning before downgrade.
And use it conditionally.
The only point used is:
from rest_framework_mongoengine.utils import get_field_info
sufficiently replaceable with model._fields_ordered
Always return QNode
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.