It happens here as well as far as I can see (tested on a Debian 11 server running Django 3.2.12).
The "Chosen groups" box seems to be created by JavaScript; if I run it with JavaScript disabled then it doesn't exist. Apparently JavaScript creates the box and then populates it and accordingly removes stuff from "Available groups". Therefore it could be an error in Django; maybe for some reason that JavaScript doesn't always run correctly on Firefox.
If I were you I'd file a Django bug anyway.
Regards,
Antonis
$('form').attr('autocomplete', 'off').each(function () {
this.reset();
});
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/92661660-a500-f625-ac9a-d1404f99cb3d%40antonischristofides.com.
Thanks Antonis
OK - the problem has two workarounds. One is to use Chrome.
Two is https://code.djangoproject.com/ticket/33386 which suggests including some javascript to disable Firefox autocomplete ...
$('form').attr('autocomplete', 'off').each(function () { this.reset(); });
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9eebd918-dbef-dbcd-94fd-ea841b7f6969%40dewhirst.com.au.
I haven't tried it, but I have a few observations on your
template code. First, it would be better to use "{% static %}"
instead of hardcoding the url to the static files. Second, "{%
blcok extrastyle %}" is obviously wrong for this, it should be
extrajs. However, neither of these should affect what you are
trying to accomplish (except if extrastyle comes earlier than
extrajs).