Comments (8)
As I continue investigating, it appears this is using a long-deprecated piece of code.
The base NetQuery
class in managers.py
looks like this:
class NetQuery(sql.Query):
query_terms = sql.Query.query_terms.copy()
query_terms.update(NET_OPERATORS)
Looking through the history of django.db.models.sql
, I found the following commits:
django/django@af69f14#diff-0edd853580d56db07e4020728d59e193 (Removed unused sql.Query.query_terms) which refers to...
django/django@5008a4d (Removed legacy ORM lookup support per deprecation timeline; refs #16187.)
This latter commit exists in every Django version starting with 1.9a1. So it would appear that this has been a long-unsupported variable.
I will continue investigating to see how to work around this.
from django-postgresql-netfields.
During my digging, I have been able to work through this a little further, but I've run into a bug in django-rest-framework, so until that library has been updated with Django 2.0 compatibility, I believe this will be blocked.
I've opened a ticket here: encode/django-rest-framework#5456
from django-postgresql-netfields.
I've got a MR here: #74
It's not done just now, but I think I can get it working.
from django-postgresql-netfields.
Apologies for the delay on this.
I just checked in support for Django 2.0. It looks like most of the stuff in managers was unnecessary in Django 1.8+ so removing it seemed to work.
However, the project I'm using this on is stuck at 1.9 due to another dependency. I have a little test app I have for this which is working fine on 2.0b2, but if one of you wanted to try it on your project before I release on pypi, that would be really appreciated.
from django-postgresql-netfields.
from django-postgresql-netfields.
With the release of Django 2.0 happening soon can you please release the master as a new version so users can just install it from PyPi?
from django-postgresql-netfields.
@jimfunk This somehow fell off my radar, but I'm circling back now that Django 2.0 has been released. Running our test suite using the latest master checkout here, it does appear to be working! I'm still running into issues with other packages, but so far this one is no longer standing as a blocker.
from django-postgresql-netfields.
OK, thanks for that. I will have to do a release then. I'm going to need it soon too.
from django-postgresql-netfields.
Related Issues (20)
- Unsupported lookup 'net_overlaps' for CidrAddressField HOT 6
- How to use Django-Netfields with Django packages requiring a custom manager HOT 2
- It would be nice to have functional equivalents in SQLite HOT 4
- loaddata failure with natural keys but successful without them HOT 2
- postgresql_psycopg2 deprecation warning (django-netfields 1.2.2) HOT 4
- extra lookups don`t work HOT 3
- SQL error while deleting from table with InetAddressField. HOT 4
- setup.py packages test directory
- Drop support for unmaintained django/python versions HOT 1
- Support for psycopg3 HOT 3
- Depreciated warning, Removed In Django 41. default_app_config is now detected automatically (in Django 3.2+) HOT 1
- Remove or replace python 2 from CI
- Deprecation Warnings for Django v3.0 HOT 4
- 'strict' parameter for network HOT 1
- Problem with ArrayField and ModelSerializer HOT 4
- Lookup by host HOT 10
- Limit fields to a specific family (IPv6, IPv4, or both) HOT 1
- Python field type is str instead of ipaddress.ip_address HOT 1
- Request to support rhs lookup expressions
- Incompatible with Django 3 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-postgresql-netfields.