I was trying to solve my problem for 2 days until I found this video. The explaination was just brilliant. Well done and thanks!
@CodeBand2 жыл бұрын
Glad it helped!
@rashedmazumder25224 жыл бұрын
Great video. Spent countless hours trying to find a good autocomplete. This video saved me.....
@CodeBand4 жыл бұрын
Glad it helped..keep going👍🏻👍🏻👍🏻
@Kennerdoll5 ай бұрын
you made it simple for me great job bro
@gulshairbutt38602 жыл бұрын
Thank you so much. I was just customising the ModelForm in admin and it worked just perfectly fine.
@CodeBand2 жыл бұрын
Great!
@paulohsgoes19594 жыл бұрын
Excellent jog. You've just gotten a new subscriber.
@CodeBand4 жыл бұрын
Thanks a lot❤️
@markarrowsmith75214 жыл бұрын
Thanks, great video! Well explained and shown at a good pace!
@CodeBand4 жыл бұрын
Glad it was helpful!
@williamlemosdevargas2532 жыл бұрын
thanks, it helped me with a problem at work
@CodeBand2 жыл бұрын
Welcome😊
@tariksnet3 жыл бұрын
Great video, thanks.
@CodeBand3 жыл бұрын
Glad you liked it!
@bobs1231234 жыл бұрын
Thank you ! this video helps a lot
@CodeBand4 жыл бұрын
Glad it helped!
@escalonajordana20903 жыл бұрын
excelent!!
@CodeBand3 жыл бұрын
Thanks 🤗
@tristanescaba55304 жыл бұрын
Thanks! well explained!
@CodeBand4 жыл бұрын
Glad it was helpful! Please share to your circle too... :)
@khadimhusen4 жыл бұрын
Good tutorial.
@CodeBand4 жыл бұрын
Glad it was helpful! Keep supporting brother... :)
@MotorbreathcL3 жыл бұрын
Thank you so much!
@CodeBand3 жыл бұрын
Glad to help😊
@convenienciadigital11292 жыл бұрын
very good
@CodeBand2 жыл бұрын
Thanks😊
@kapitankidlattv96132 жыл бұрын
Great video! Quick question, can we use this in formset?
@CodeBand2 жыл бұрын
Thanks, and of course you would be able to integrate it with formset with some tweaks :)
@uberdamcavaletti3 жыл бұрын
HI, it is possible to make query_set filter in non Admin forms, when the user press key in select ?
@CodeBand3 жыл бұрын
Yeah, you can make use of onchange event listener to the select element.
@nikhilrizal37293 жыл бұрын
How to if we have more than one , I tired is not working please show us or is there any documentation
@CodeBand3 жыл бұрын
It should've worked.... even in the case of two fields... You might have got the idea from the video itself on how to do that... Also you can consult Select2 and Django Docs...
@marioa18382 жыл бұрын
Thank you! it worked. But now, I am wondering what I've got to do if I want two select2 fields in the same form. It probably has something to do in the views.py file, right? Along the lines of if #buttonid is clicked, then this term search, if #buttonid2 is clicked then this, right? but ive got no idea
@CodeBand2 жыл бұрын
Sorry for the late reply... Yeah, you can do that by tweaking views.py and the frontend.
@asgeralia8802 Жыл бұрын
Sir superb, but i want in employee form having coutry from country tbl, blood group, department from dpt tbl, section, designation from desig tbl and etc. Can pls explain. And this not download
@Samuelnois2 жыл бұрын
Ei, bro. How do I implement with CreateView ? I can't make it to the second part with createview
@CodeBand2 жыл бұрын
Sorry for the late reply.... Is this fixed ?
@Samuelnois2 жыл бұрын
@@CodeBand yes. Thanks
@sassydudes55902 жыл бұрын
Hey brother I'm working on a project where I have a model name Book and inside it I've one field called Author, this author is many to many field so which just like in this video you've language which is getting its field fron language model, it is same in my project. I want to get authors for book upload form from authur model, Now what I want to do is when we have new author then rather than manually crating that author in authur table in admin pannel I want to add it through selecte2 plugin Can you can tell Me how can I do it Now I what I want to do is When I click on
@CodeBand2 жыл бұрын
docs.djangoproject.com/en/4.1/topics/db/examples/many_to_many/ The docs has so much info. on this relationship and its almost the same example they are taking.
@solques364 жыл бұрын
Could u tell me the method to do if i had a search bar instead using only How would i implement the select 2 for this?
@CodeBand4 жыл бұрын
The better way to do that will be using another library called jQuery UI..I have done a video on that too... kzbin.info/www/bejne/Y6Cvh42mZrOEjKc Also, refer this stackoverflow question for more info... stackoverflow.com/questions/20223044/select2-start-with-input-field-instead-of-dropdown
@travelfreak12462 жыл бұрын
'WSGIRequest' object has no attribute 'is_ajax' this is my error. please answer me..
How to do it in a many to many relationship, with multipleselect?
@ayubkara10922 жыл бұрын
can you show us how to use select2 with django_filters
@CodeBand2 жыл бұрын
Will try to do a video on it, meanwhile try digging into docs and figure it out...
@ayubkara10922 жыл бұрын
@@CodeBand will do , Thanks
@ranjeetmishra90314 жыл бұрын
Thanku sir
@CodeBand4 жыл бұрын
Thanks a lot😊
@codedjango4 жыл бұрын
How about multiple select instead? for m2m relationships?
@CodeBand4 жыл бұрын
Bro, its pretty much the same concept with little tweaks, if you see the whole video, then probably, you could definitely do the multiple select as well. Thank you.
@codedjango4 жыл бұрын
Ok i will try
@mfsdrawings86004 жыл бұрын
Nice
@CodeBand4 жыл бұрын
Thanks 😊
@DimitrisKougioumtzis3 жыл бұрын
how to add select2 widget in django admin tabular inline form ?
How e-commerce websites do currency converter. When I select USD the price shown in $, when I click INR price shown in rupees. How? How?
@CodeBand4 жыл бұрын
There are a lot of API's available out there to do the conversion. Thanks.. :)
@KrishnaManohar80214 жыл бұрын
@@CodeBand bro push any tutorials for that. May be it trending topic 🤔
@CodeBand4 жыл бұрын
Will think about that...anyway a great idea :)
@KrishnaManohar80214 жыл бұрын
@@CodeBand I already give u DRF & JwT tutorials, still your not implemented 😟
@CodeBand4 жыл бұрын
@@KrishnaManohar8021 Will definitely post them in the near future, Little bit busy now a days, pardon me.
@imouranasavane10544 жыл бұрын
Thanks lot, your video helps lot. I have a form with two fields to be completed with different Foreinkey(email, employee department), could you help me. Please
@CodeBand4 жыл бұрын
Thanks :) The process is pretty much the same with even two foreign key fields. You may different options like you can make different ajax requests and url paths for those two foreign key fields OR you can use the same one and differentiate them in the function.
@walterrandazzo63994 жыл бұрын
Hi guys, How to use it with Boostrap?
@CodeBand4 жыл бұрын
Please go through this link... stackoverflow.com/questions/36132875/how-to-use-select2-bootstrap
@xlsautomatizaciones91974 жыл бұрын
@@CodeBand Thanks bro, keep doing this!
@CodeBand4 жыл бұрын
Glad to hear that..😊😊
@coastallivestream71174 жыл бұрын
next video on tinyMCE PLEASE
@CodeBand4 жыл бұрын
Thanks for the suggestion, I will definitely look into that in a future video.