JsonResponse have a DEFAULT_JSON_ENCODER setting

2022-06-23 Thread Fab
/0dd29209091280ccf34e07c9468746c396b7778e/django/http/response.py#L676 Is there any reason not to do this? Feels like it wont break backwards compatibility. Regards, Fab -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)&q

Re: get_random_secret_key not documented!?

2022-06-01 Thread Fab
There isn't a recommended way so you can generate it however you want. The function is used in the startproject command for convenience. On Monday, 16 May 2022 a

Re: Django issus

2022-04-11 Thread Fab
Actually you need to just fix the import error. The error will say where's it's happening. Could it be you are importing `employee` when you should be `Employee`? On Monday, 11 April 2022 at 09:54:08 UTC+1 Fab wrote: > Can you share your models and migrations files? > > O

Re: Django issus

2022-04-11 Thread Fab
Can you share your models and migrations files? On Saturday, 9 April 2022 at 17:14:00 UTC+1 hanenmd...@gmail.com wrote: > hello ! > I whish that you are fine, i try to migrate my model my model name is > employee but it dosent work the issus msj is ImportError:cannot import name > 'employee' fr

Violating unique constraint in the admin

2021-10-08 Thread Fab
Hi, When I violate a unique constraint in the admin I get an error page. I know I can check this myself and show an error message when the form is cleaned but I feel like this should be handled by default. Are there any reasons why it shouldn't show an error message on the admin page? Cheers,

Re: Get the group a permission belongs to

2021-07-16 Thread Fab
[image: group_perms.png] For example like this. On Thursday, 15 July 2021 at 18:27:40 UTC+1 Fab wrote: > Hi, > > I mainly use the groups to handle permissions for my users. There doesn't > seem to be a quick way to know what group a permission is in when I want to > give

Get the group a permission belongs to

2021-07-15 Thread Fab
a permission to open its page with what groups it belongs to and maybe have to option to edit them there too. Or be able to filter by groups with a certain permission when adding the group to a user. Is there any reason why this isn't a good idea? Cheers, Fab -- You received this mes

Trigger an event after running collapse.js

2020-12-04 Thread Fab
e. It would be better than having to wait a few frames after the 'load' event to ensure the script has run already. Cheers, Fab -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubs