django-tagulous icon indicating copy to clipboard operation
django-tagulous copied to clipboard

Select2 initialiser broken with Django 4.1

Open jedie opened this issue 1 year ago • 4 comments

It seems that select2-4.js code is not compatible with Django 4.1:

grafik

jedie avatar May 03 '23 07:05 jedie

I am also wandering to get help using latest tagulous with django 4.2 and python 3.10 i am copying and parsing all the fields in a form to tagsfield as tags code is working fine tags are getting saved and associated to posts also and also can see the association of posts in tagulous admin interface but the issue is tagfields of posts remain empty no tags at all even if i try to edit the post it shows no tags bit admin panel shows tags. Even initial tags are not showing up in tagsfield after save or post

And i am also facing exactly the same issue with taggit too.

engrimran7 avatar May 05 '23 01:05 engrimran7

There have been some significant changes to the Django form rendering system, I suspect that's something to do with it. I'm hoping to get some time next week to take a look at what has gone wrong.

radiac avatar May 05 '23 05:05 radiac

@radiac The problem is in AdminTagWidget.media.

media = AutocompleteMixin.media.fget(None) is now throwing exception, because they do not calculate i18n_name name on the fly, instead they are doing that in __init__.

Can you fix this? Thanks

Milutinke92 avatar May 29 '23 12:05 Milutinke92

Brilliant, thanks for the detective work, that'll help! Hoping to get to this next week.

radiac avatar May 29 '23 13:05 radiac