flat-painting-36912
09/28/2022, 9:22 PMflat-painting-36912
09/28/2022, 9:23 PMhundreds-camera-24900
09/28/2022, 9:27 PMhundreds-camera-24900
09/28/2022, 9:27 PMhundreds-camera-24900
09/28/2022, 9:28 PMflat-painting-36912
09/28/2022, 10:36 PMearly-camera-41285
09/29/2022, 5:35 AMflat-painting-36912
09/29/2022, 12:03 PMhundreds-camera-24900
09/29/2022, 5:19 PMhundreds-camera-24900
09/29/2022, 5:20 PMtypescript
import Cookies from "js-cookie";
htmx.defineExtension("get-csrf", {
onEvent: function(name: string, evt: any) {
if (name === "htmx:configRequest") {
evt.detail.headers["X-CSRFToken"] = Cookies.get("csrftoken");
}
},
});
proud-greece-74102
09/30/2022, 10:35 AMancient-shoe-86801
09/30/2022, 3:53 PMflat-painting-36912
09/30/2022, 4:49 PMflat-painting-36912
09/30/2022, 4:51 PMflat-painting-36912
09/30/2022, 4:59 PMflat-painting-36912
09/30/2022, 5:00 PMflat-painting-36912
09/30/2022, 5:01 PMcuddly-van-63251
10/05/2022, 9:27 AMtags = tagulous.models.TagField(
force_lowercase=True,
null=True,
blank=True,
help_text="tags da receita",
autocomplete_view="recipe_tag_autocomplete",
)
My url conf to fetch known tags:
path(
"partial/tag/autocomplete/",
tagulous.views.autocomplete,
{"tag_model": Recipe},
name="partial_autocomplete_recipe_tag",
),
How can I do something like that https://larainfo.com/blogs/bootstrap-5-tags-input-examples on htmx, I'm not good at frontend
Thanks in advancemammoth-family-48524
10/05/2022, 10:55 AMmammoth-family-48524
10/05/2022, 10:58 AMmammoth-family-48524
10/05/2022, 11:00 AMmysterious-toddler-20573
10/05/2022, 12:50 PMvictorious-cat-12942
10/05/2022, 5:15 PMvictorious-cat-12942
10/05/2022, 5:16 PMworried-eve-2556
10/05/2022, 5:22 PMworried-eve-2556
10/05/2022, 5:26 PMmysterious-toddler-20573
10/05/2022, 5:28 PMproud-librarian-99598
10/06/2022, 9:30 AMcuddly-van-63251
10/06/2022, 10:45 AM