Giter Site home page Giter Site logo

Comments (5)

bellini666 avatar bellini666 commented on August 17, 2024

Hey @coderanger ,

Hrm, I'm trying to understand your modeling there. Is it a OneToOne to the same item (self)? Because your are querying both the foreignkey and the related item in the same object.

from strawberry-django-plus.

bellini666 avatar bellini666 commented on August 17, 2024

Btw, which django version are you using?

Django 4.2.2 just got released today, and one of the fixes is this: https://code.djangoproject.com/ticket/34612

I'm wondering if it has anything to do with the issue

from strawberry-django-plus.

coderanger avatar coderanger commented on August 17, 2024

Yes, sorry it's a self-referencing field https://github.com/coderanger/farmrpg-etl2/blob/06920220df55376277462749b82bf046994a0dca/items/models.py#L39-L45 . I switched it to a FK since that works and it's easy enough to add a ...[0] in the client code but it used to be a OneToOne instead.

It's 4.2 right now, will give the new release a try and report back.

from strawberry-django-plus.

bellini666 avatar bellini666 commented on August 17, 2024

@coderanger please tell me if 4.2.2 fixed the issue for you, so we can close this issue. Otherwise I'll need to investigate what might be going on here =P

from strawberry-django-plus.

coderanger avatar coderanger commented on August 17, 2024

Apologies, got distracted. I tried it just now and it appears to work with 4.2.2 so I think we can close this out as a Django bug. If I find a new way to trigger it, I'll reopen :)

from strawberry-django-plus.

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.