radiac / django-tagulous

Fabulous Tagging for Django
http://radiac.net/projects/django-tagulous/
Other
336 stars 66 forks source link

Select2 initialiser broken with Django 4.1 #179

Closed jedie closed 1 month ago

jedie commented 1 year ago

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

grafik

engrimran7 commented 1 year ago

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.

radiac commented 1 year ago

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.

Milutinke92 commented 1 year ago

@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

radiac commented 1 year ago

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