Mmmm I believe what you shared Shai is very sophisticated than what is
proposed.
The proposal is a shortcut function for with ability to have a custom
parent for more usability for an everyday use , like what's in the
documentation about managers.
My proposal is *not* a new way to write managers .
On Sun, 1 Jan 2023 16:33:45 +0200
Ramez Ashraf wrote:
>
> Interested or do you think the function can be enhanced it to make
> more useable for your everyday other cases ?
>
This is half-baked, just a thought, but maybe you can take it some
place interesting:
Imagine a class that "collects" c
Hello Adam
Happy new year!
Thank you for the feedback, really appreciate it.
I thought the same like you at first, a cool function in my project (which
is indeed the case)
One thing that gave me more incentive is the documentation code example.
IMO, i can see how shorter (and more readable) it wou
Your proposal is quite niche: it only shortens the creation of a Manager
class when you need to add a single filter() call. The function seems like
it might be a useful helper within a project, if you use many such
managers. But custom managers might use any queryset methods, or other
logic. I've o