assem-ch / django-jet-reboot

Legacy Django jet rebooted to support Django > 3 (4 and 5), and latest python releases
https://django-jet-reboot.readthedocs.io/
GNU Affero General Public License v3.0
410 stars 69 forks source link

Adding permissions to groups and users #27

Open cobia opened 2 years ago

cobia commented 2 years ago

The form fields for adding permissions to groups and users does not work as it did in the original django-jet. I;m not sure if it should work differently but in it's current state I cannot add permission. I'm using Django 3.2.12 and django-jet-reboot=1.3.0. Screenshot is attached.

Screenshot from 2022-03-24 17-56-15

cobia commented 2 years ago

UPDATE: It does the same in Django==4.0.3

assem-ch commented 2 years ago

@cobia I could not replicate the bug:

Screenshot 2022-04-03 at 10 47 03 PM

Can you try on different browsers?

cobia commented 2 years ago

I'm on Zorin OS and tried in the following browsers:

Firefox: 98.0.2 (64-bit) Chrome: 99.0.4844.84 (Official Build) (64-bit) Chromium: 100.0.4896.60 (Official Build, ungoogled-chromium) (64-bit) Microsoft Edge: Version 99.0.1150.55 (Official build) (64-bit)

In all browsers, i get this message in the devtools console:

Screenshot from 2022-04-03 23-11-23

Hope that helps.

FraCata00 commented 2 years ago

So I've tried to add some code in settings.py... to allow method in the server ngix and to fix that error: Refused to display <ip> in a frame because it set 'X-Frame-Options' to 'deny'. Add this in settings.py:

X_FRAME_OPTIONS = 'ALLOWALL'

XS_SHARING_ALLOWED_METHODS = ['POST','GET','OPTIONS', 'PUT', 'DELETE']
cobia commented 2 years ago

@FraCata00 , I tried adding those settings but didn't work for me.

FraCata00 commented 2 years ago

@cobia So I think the problem is in build_min.js because gettext is undefined... and that's become django doesn't have any gettext associated (I think...)