How to use Django database function expressions directly
How to use Django database function expressions directly
www.jamesbeith.co.uk How to use Django database function expressions directly
Django has a many built-in database functions and a documented Func API for writing your own. Whilst writing a custom Func subclass may sometimes be necessary, I learnt that there’s many cases when you can instantiate Func with the necessary arguments to get what you need. For example, take the foll...
0
comments