Re: How to save a result of multiplication

2021-04-25 Thread Derek
I think you have used the wrong name - "saveit" instead of "save" - also have a look at the example in the docs: https://docs.djangoproject.com/en/3.2/topics/db/models/#overriding-predefined-model-methods and see which parameters are needed for it. On Saturday, 24 April 2021 at 20:50:15 UTC+2 enc

Re: Validate group of fields

2021-04-25 Thread Derek
The docs cover this use case: https://docs.djangoproject.com/en/3.2/ref/forms/validation/#cleaning-and-validating-fields-that-depend-on-each-other On Saturday, 24 April 2021 at 19:57:50 UTC+2 robert...@gmail.com wrote: > > > Hello guys! > > I've 3 fields, but I need validate it as a group, Ej: >

Racing condition with pre_delete

2021-04-25 Thread Sebastian Haase
I often run into a bug when the client triggers multiple http requests resulting each in a delete. My objects have a „sibling index“ field, where I use pre_delete to update all siblings „above“ to lower their index by 1 (using update with an F-expression). Any idea why this would not work reliab

Connect Django authentication to windows ldap/windows active directory

2021-04-25 Thread Swelan Auguste
I'm trying to connect my Django applications to ldap/windows active directory. Can anyone help me. Thankfully, Swelan R. Auguste (Mr.) KingShip Technical - Information Officer 758-729-5289 https://KingShip.business.site/ -- You received this message because you are subscribed to the Google Gro

Re: django3.2---bug win10

2021-04-25 Thread Jason
that's not a bug. Look at the two inputs in your terminal. First one starts with a `>`, looks like you copied it verbatim. `>>>` is convention for terminal prompt On Sunday, April 25, 2021 at 10:37:59 AM UTC-4 cqwuxi...@gmail.com wrote: > > [image: QQ截图20210425220126.png][image: QQ截图202104252