Re: How to hash fields and detect changes in a record

2022-06-10 Thread Mike Dewhirst
Ryan Thanks very much - you triggered the necessary amount of thinking and I reckon you are correct - hashing is overkill. I just need a self-referential value comparison where the value is independent of outside influences. That means I should not use a hash library from anywhere. I'll ju

Re: I can't use accented letters in my model

2022-06-10 Thread Virgilio Ravagli
Thank you, Antonis, it works ! book.title = u'Verità' doesn't give any errors. Just another step: suppose that the title with accented letters stays in a variable, say titolo, and I want to write book.title = titolo. It gives error. How can I do, when the assignment on the right is not a constan

Re: Json Object type field in Model in Django

2022-06-10 Thread Derek
Creating: https://docs.djangoproject.com/en/4.0/ref/models/fields/#jsonfield Querying: https://docs.djangoproject.com/en/4.0/topics/db/queries/#querying-jsonfield On Thursday, 9 June 2022 at 15:00:31 UTC+2 vmuk...@gmail.com wrote: > Hii Community, > > can we add a field in model that stores j

Re: How to hash fields and detect changes in a record

2022-06-10 Thread Mike Dewhirst
On 10/06/2022 11:24 pm, Ryan Nowakowski wrote: On Fri, Jun 10, 2022 at 05:52:48PM +1000, Mike Dewhirst wrote: The use case is auto-deletion of out-of-date records if they have not changed. That might sound weird but it is the solution I have come to for a particular problem. My software analyse

Re: How to hash fields and detect changes in a record

2022-06-10 Thread Ryan Nowakowski
On Fri, Jun 10, 2022 at 05:52:48PM +1000, Mike Dewhirst wrote: > The use case is auto-deletion of out-of-date records if they have not > changed. > > That might sound weird but it is the solution I have come to for a > particular problem. My software analyses chemical properties and writes note >

Re: I can't use accented letters in my model

2022-06-10 Thread Antonis Christofides
Hello, try this: book.title = u'Verità' Regards, Antonis P.S. Sorry I was a bit harsh yesterday—I had drunk too much beer :-) On 10/06/2022 10.50, Virgilio Ravagli wrote: I have surround book.save with a try...catch...; the exception is: You must not use 8-bit bytestrings unless you use a

Re: I can't use accented letters in my model

2022-06-10 Thread o1bigtenor
On Fri, Jun 10, 2022 at 6:15 AM Virgilio Ravagli wrote: > > I'm bound to use old versions of Python and Django, cannot pass to newer > versions in this project > https://python.readthedocs.io/en/v2.7.2/howto/unicode.html maybe that helps You may also have a severe case of 'can't get there from

Re: I can't use accented letters in my model

2022-06-10 Thread Virgilio Ravagli
I'm bound to use old versions of Python and Django, cannot pass to newer versions in this project Il giorno venerdì 10 giugno 2022 alle 12:07:44 UTC+2 ajoeiam ha scritto: > On Fri, Jun 10, 2022 at 2:50 AM Virgilio Ravagli > wrote: > > > > I have surround book.save with a try...catch...; the exc

Re: I can't use accented letters in my model

2022-06-10 Thread o1bigtenor
On Fri, Jun 10, 2022 at 2:50 AM Virgilio Ravagli wrote: > > I have surround book.save with a try...catch...; the exception is: You must > not use 8-bit bytestrings unless you use a text_factory that can interpret > 8-bit bytestrings (like text_factory = str). It is highly recommended that > you

How to hash fields and detect changes in a record

2022-06-10 Thread Mike Dewhirst
The use case is auto-deletion of out-of-date records if they have not changed. That might sound weird but it is the solution I have come to for a particular problem. My software analyses chemical properties and writes note records containing advice, each with a FK to the chemical. When value

Re: I can't use accented letters in my model

2022-06-10 Thread Virgilio Ravagli
I have surround book.save with a try...catch...; the exception is: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings. Without t

Re: how to convert xlsx file into jpg

2022-06-10 Thread Joel Goldstick
On Thu, Jun 9, 2022 at 10:47 PM Gabriel Araya Garcia wrote: > > Why do you want to do that? I ask you about that for have one idea to give > you. Perhaps there is an easy solution. > We need more information > > Gabriel Araya Garcia > GMI - Desarrollo de Sistemas Informáticos > > > > > El jue, 9