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



On 13/04/2022 10.00, Mike Dewhirst wrote:
I don't know how long this has been happening for me.

Happens on Windows 10 in Mozilla Firefox but not Chrome.

 In the Admin User screen where there are two boxes of Groups labelled 'Available groups' and 'Chosen groups' with controls to move groups between boxes, everything seems to work perfectly - until I refresh the screen!

On refresh, the Chosen groups box seems to slide across to the left and drop all its groups into the Available box! It quickly resumes its usual place on the right except that it is completely empty.

Shift refresh retrieves the data from the database and everything is OK.

The problem is that if an admin user accidentally saves after a refresh, they save that profile with no permissions and that user loses all access to their data.

I have tested identically on four different Django projects I look after with the same results. Django versions 3.2.12 and 3.2.13 running on Apache 2.4 on Ubuntu 20.04 and localhost on Windows 10 with the dev server. Also happens on Ubuntu 18.04 with nginx and running Mezzanine.

Any ideas? Debug strategy?

Not sure where to start.

Seems like a Mozilla issue but I have been known to get things wrong. Has anyone seen this?

Thanks

Mike



--
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+unsubscr...@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.

Reply via email to