Comments (15)
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.
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.
I have the same problem.
from django-jet.
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.
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.
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.
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.
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.
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.
@hakimkal, are you sure about it? Have you a bug's trace back?
from django-jet.
@SalahAdDin yes, I am very sure. i had to revert to the default django-admin UI to use django smart-select.
from django-jet.
Will be very useful that you put here a tracebak.
from django-jet.
@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.
@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.
Please come to the django-jet Discord server so we can organize if you like:
Welcome! 😄
from django-jet.
Related Issues (20)
- ImportError: python_2_unicode_compatible HOT 1
- ModuleNotFoundError: No module named 'jet.urls' HOT 2
- Issue with google analytics widget HOT 1
- Jet is not responding HOT 1
- get_model_queryset() missing 1 required positional argument: 'search_help_text' HOT 2
- ImportError: cannot import name 'python_2_unicode_compatible' from 'django.utils.encoding' HOT 2
- Demo site Admin panel not open (Server Error (500))
- Demo site Admin panel not open (Server Error 500)
- __init__() missing 1 required positional argument: 'search_help_text' HOT 8
- django-jet-4 not able to display individual DB entries : TypeError at '/admin/app/model-table/<int:pk>/change/' HOT 2
- this project will no longer be maintained??? HOT 2
- Compact Inline is not working HOT 1
- Connection refused by localhost when trying to add a foreign key in new model HOT 2
- Scroll down on admin columns get messed up
- admin_url with view permission HOT 1
- list_filter doesn`t display in jet admin panel, but it is shown in the normal version of the admin panel: python 3.10 django 4.1 HOT 3
- [email protected]
- add renderer=None to Credential Widget
- Groups and Permissions
- Logout error 405 using Jet, but logout normal without jet
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-jet.