django-crispy-forms & ModelChoiceFields / Select2 Integration for Searchable Form Fields

django-crispy-forms & ModelChoiceFields / Select2 Integration for Searchable Form Fields

BugBytes

10 месяцев назад

11,838 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Federico Campo
Federico Campo - 11.10.2023 01:19

Hello, can you explain how use select2 with dynamic formsets?

Ответить
Luigi Di Martino.
Luigi Di Martino. - 02.10.2023 22:08

how do we implement models and select2 to allow user to add a new car that isnt in our database? in select2 documentation there is someting like "tags: true" that allows you to enter a new tag (a new car in this case) but i dont know hot to get it working with django. right now if i only add tangs:true and try to enter a new car it shows this forms error: Select a valid choice. That choice is not one of the available choices.

Ответить
Asger Ali A
Asger Ali A - 30.09.2023 09:05

Superb and awesome

Ответить
Severe Tsunamist
Severe Tsunamist - 27.09.2023 12:48

You are the best! Thanks for compact and complete overview

Ответить
DeeRzLetuM
DeeRzLetuM - 26.09.2023 07:49

thankyou

Ответить
Felipe Martins Gomes Pereira
Felipe Martins Gomes Pereira - 19.09.2023 03:19

You know what would be awesome?

A video showing how to implement many to many fields used by admin panel. Once I did it, but it will be great watching from you!

Ответить
Wazid Malik
Wazid Malik - 14.08.2023 16:37

what an amzing tutorial 🧡🧡

Ответить
Umair Sarwar
Umair Sarwar - 06.08.2023 19:20

Hello bro its a request please create a multilevel dropdown/nested with search functionality and data having icons too , htmx will be good or you can use anything i found no solution for this

Ответить
ggsge tâfaf
ggsge tâfaf - 05.08.2023 16:47

I have encountered an issue where using render_block_to_string to respond to an HTMX Ajax call for replacing choice fields, which were initially set with select2(), causes jQuery not to affect these fields anymore. To resolve this, I had to add a script using htmx.onLoad to reattach select2() to the choice fields. However, there's a small problem. How can I prevent lag from happening between onLoad events?

Ответить
Kunal Gore
Kunal Gore - 04.08.2023 06:34

Much awaited! Happy as heaven!

Ответить
Trond Lillebø
Trond Lillebø - 04.08.2023 03:37

Great video as always. select2 is a gold discovery! 🥳👍

Ответить
Wiki-Info Development
Wiki-Info Development - 04.08.2023 01:13

Like always, you are the best 😍

Ответить
andre jansen
andre jansen - 03.08.2023 23:09

Thanx for the video it explains a lot.
But a question what do you prefer tailwind or bootstrap in combination with Django?

Ответить
Dmitry Mikhailov SPb
Dmitry Mikhailov SPb - 03.08.2023 21:34

Thank you!

Ответить
Mr.YaYaman
Mr.YaYaman - 03.08.2023 21:00

What I exactly need 😊 thank you for this.

Ответить
Dr Ahmed Mashaly
Dr Ahmed Mashaly - 03.08.2023 20:28

greaaaaaaaaaat master

👍👍👍👍

Ответить
yo
yo - 03.08.2023 18:34

great stuff!,
and how to make the car field dynamically displayed (not the entire queryset, but for example, we enter letters and it is dynamically completed and we can choose an element from what we have filtered)?

Ответить
frame fF
frame fF - 03.08.2023 16:40

thank

Ответить
Seydina Oumar SAMABALY
Seydina Oumar SAMABALY - 03.08.2023 16:05

Been waiting for one tuto of yours this week, finally it arrived 😩! The Django GOAT 🙏🏾🙌🏾! Thank you Master.

Ответить
Sery christian renaud
Sery christian renaud - 03.08.2023 15:54

Thank

Ответить
Farzad Majidfayyaz
Farzad Majidfayyaz - 03.08.2023 15:10

Oh no! jQuery 😆 ... great video BTW (as usual)

Ответить
Repotrans tech
Repotrans tech - 03.08.2023 15:02

When is the finance tracker project demo dropping?

Ответить
Justin Spryce
Justin Spryce - 03.08.2023 15:02

Great lesson, sir

Ответить
Repotrans tech
Repotrans tech - 03.08.2023 15:01

Cool video,this was a problem for me in the past ,tried autocomplete light but it wasn't elegant.Django select2

Ответить
unl0ck
unl0ck - 03.08.2023 14:09

Choices is better than select2 because it doesn't require jQuery

Ответить
@Clean_Code
@Clean_Code - 03.08.2023 14:00

Great Video bro. Thank you so much.

Ответить
Ali Hassan
Ali Hassan - 03.08.2023 13:14

Hi, can you do the same thing crispy tailwind?

Ответить
Ignatus Arkoh Amoah
Ignatus Arkoh Amoah - 03.08.2023 13:07

Great gist. I integrated select-2 in my current project. I'm happy you're throwing more lights on it.

Ответить