Git Product home page Git Product logo

Comments (15)

scrummastermind avatar scrummastermind commented on May 12, 2024 3

This is JQuey binding issue, jet uses django jQuery while smart select uses google api by default

just simply for smart select in your django settings place

JQUERY_URL = False

from django-jet.

vitorfragoso avatar vitorfragoso commented on May 12, 2024 1

I also think there is a problem between Jet and Smart Select. I was using Smart Select successfully before install the Jet template. After install Jet, the Smart Select has stopped working.

In my case, I have two fields that are: team_name and employee_name. The employee_name should be loaded based on team_name.

Something like that:
team_name = models.ForeignKey(Team)
employee_name = ChainedForeignKey(
Employee,
chained_field="team_name",
chained_model_field="team_name",
show_all=False,
auto_choose=True,
unique= True)

Now the problem is that the employee_name field is not loaded after select the team_name.

from django-jet.

SalahAdDin avatar SalahAdDin commented on May 12, 2024 1

I have the same problem.

from django-jet.

vitorfragoso avatar vitorfragoso commented on May 12, 2024 1

I have observed the following behavior:

  • Field B depends on Field A.
  • Both fields are required.

When I fill out Field A, keep the Field B as blank and try to save Then Field B is loaded.
After this behavior, I can fill out Field B and finally save.

I believe we should call a specific JS when a user click on Add/Edit New Item. It seems to be a JS that we are calling after try to save.

Note: i tested the Smart Selects with Django-Suite template and it works fine.

from django-jet.

SalahAdDin avatar SalahAdDin commented on May 12, 2024

Are you shure that isn't problem with django-smart-selects? I say because i'm using it and i don't know if the problem is that django-jet doesn't user normal input selects or if a problem with the current django-smart-selects, i report an issue there.

from django-jet.

neotrons avatar neotrons commented on May 12, 2024

Hi sir thanks for your time what version do you use?

I use this version

Django==1.8.3
django-jet==0.1.4
django-smart-selects==1.2.2

thanks

from django-jet.

SalahAdDin avatar SalahAdDin commented on May 12, 2024

I have these version but i'm working with custom branch, but, if the lastest version doesn't works i think that is a smart-selects problem.

from django-jet.

neotrons avatar neotrons commented on May 12, 2024

thanks sir, please 1 questions. how i can access the change event (jquery) in the select.

i use but not fount the event

$("#id_selectname").change(function(e){
alert("test");
});

thanks.

from django-jet.

hakimkal avatar hakimkal commented on May 12, 2024

I have realised the reason is django-jet (0.1.2) uses jquery 1.11.3 and django-smart-selects uses jquery 2.2.0. this is the conflict point, hence from django admin area, it creates conflict.

from django-jet.

SalahAdDin avatar SalahAdDin commented on May 12, 2024

@hakimkal, are you sure about it? Have you a bug's trace back?

from django-jet.

hakimkal avatar hakimkal commented on May 12, 2024

@SalahAdDin yes, I am very sure. i had to revert to the default django-admin UI to use django smart-select.

from django-jet.

SalahAdDin avatar SalahAdDin commented on May 12, 2024

Will be very useful that you put here a tracebak.

from django-jet.

hakimkal avatar hakimkal commented on May 12, 2024

@SalahAdDin , yes I would love to do that, but right now I have no project using django-jet and django-smart-select. however maybe in the future. so sorry.

from django-jet.

SalahAdDin avatar SalahAdDin commented on May 12, 2024

@hakimkal so bad, do you think if problem is with oudated jquery version? or do you think is for newest jquery version?

from django-jet.

Ismael-VC avatar Ismael-VC commented on May 12, 2024

Please come to the django-jet Discord server so we can organize if you like:

Welcome! 😄

from django-jet.

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.