Code Monkey home page Code Monkey logo

Comments (8)

tarkatronic avatar tarkatronic commented on June 10, 2024

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.

tarkatronic avatar tarkatronic commented on June 10, 2024

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.

orf avatar orf commented on June 10, 2024

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.

jimfunk avatar jimfunk commented on June 10, 2024

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.

tarkatronic avatar tarkatronic commented on June 10, 2024

from django-postgresql-netfields.

washeck avatar washeck commented on June 10, 2024

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.

tarkatronic avatar tarkatronic commented on June 10, 2024

@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.

jimfunk avatar jimfunk commented on June 10, 2024

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)

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.