Answer the question
In order to leave comments, you need to log in
How to dynamically form and store a queryset?
Is it possible and how best to dynamically form and store a queryset?
That is, I initially do not know what will need to be taken from the database, but I know which filter to apply to this. For example, the user forms (through the interface) what he wants, so that at 15 o'clock the user who has 5 messages and warnings will be sent an invitation to a party.
That is, I know that in the 15th request I need to run a request that will select the user, but how can I save it so that I can run it later?
I thought aside to store the pickle code and run it, but I feel that this is not cool at all. I thought in the direction of JSON -> dict -> Q -> quyreset, but it's not clear how to make an exception ... Tell me
, I came across it.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question