This will work
data = Articles.objects.all().annotate(result=ExpressionWrapper(F('cost_buy')
* F('quantity') , output_field=FloatField()))
now data is a queryset. so you can do something like this
data[0].result
data.values("result")
--
You received this message because you are subscribed to the
If you're looking for a tool to allow anyone to see your project running on
localhost. There's a cool tool called Ngrok Which exposes your localhost
to be public with a secure tunnel.Check it out.
https://ngrok.com/
On Wed, Dec 23, 2020 at 11:36 PM Benny M wrote:
> I’m going to second Kasper o
2 matches
Mail list logo