Re: Query identity operation

2020-12-20 Thread Leon Albrecht
n schrieb am Sonntag, 20. Dezember 2020 um 18:33:07 UTC+1: > How is this different from QuerySet.all() ? Can you give a code example of > what you'd imagine this API doing? > > On Sun, 20 Dec 2020 at 17:05, Leon Albrecht wrote: > >> Hey everyone, >> >> I

Re: Query identity operation

2020-12-20 Thread Leon Albrecht
Ok, I will follow with exemplary code similar to the one i use: ... searchquery = request.GET["q"] complete_query = ~Q(pk__in=[]) # this should be something like Q.ident() for query in search_query.split(): complete_query &= ( Q(autor__first_name__i

Query identity operation

2020-12-20 Thread Leon Albrecht
Hey everyone, I'm running a website, that uses a search bar, and to parse said search bar, I "and" together multiple queries in a loop, but to start of I need a Identity-Query, that does nothing and return everything. There are solutions to create one, but they aren't free and do not look good

Suggestion to change the Logger date format to ISO 8601

2019-12-16 Thread Leon Albrecht
At the moment Django is using "DD/MMM/ hh:mm:ss", but since 1988 there exists an ISO to format dates like this: "YYY-DD-MM hh:mm:ss" this is not a majot change and i've searched for to do it myself but according to the python logger libary this format is already in use, but Django apperantl