Giter Club home page Giter Club logo

Comments (6)

crucialfelix avatar crucialfelix commented on July 16, 2024 1

This is fixed now, works in Django 5 as well. Release coming shortly.

from django-ajax-selects.

kalevhark avatar kalevhark commented on July 16, 2024 1

Works well! Thank You, Chris!

from django-ajax-selects.

crucialfelix avatar crucialfelix commented on July 16, 2024

What changed? Something must have changed, resulting in it no longer working.

Did you update Django, django-ajax-selects or any of your connecting code?

from django-ajax-selects.

kalevhark avatar kalevhark commented on July 16, 2024

I don't know. I tried to find reason several days. I tried in my app downgrade django version 4.1.5 -> 4.0.2 and django-ajax-select to 2.0.0. Nothing changed.
Then I installed in new virtual environment example app from django-ajax-select git and it's also not working with Django 4.1.5 nor 4.0.2. Something wrong with sending back data to admin from popup window. I looked from DOM, for example if I choose from existing items, it looks pk correctly in in "|pk|" but if I add new item it places value without "|". If I choosed previously several items it show in DOM "|pk1|pk2|" but if I try to add new, it replaces it with "pk3" (not "|pk1|pk2|pk3|". My javascript skills are weak but maybe something related with new version of "RelatedObjectLookups.js" in django admin js pack.

from django-ajax-selects.

kalevhark avatar kalevhark commented on July 16, 2024

Little update. I managed get it back work. Rolled back Django 4.1.5 -> 4.0.10. Removed from static admin js/css, made python manage.py collectstatic, restarted server and refreshed (shift+F5) admin page. Now everything works nice again!
Tested with django-ajax-selects "example" app. It's works with 4.0.2, 4.0.5 and 4.0.10 neither with 4.1.0 or 4.1.5.

from django-ajax-selects.

crucialfelix avatar crucialfelix commented on July 16, 2024

Ok thanks for discovering the exact version that triggers it.

I should be able to fix, perhaps next week. I'm just returning from vacation.

from django-ajax-selects.

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.