1👍
Use the Tan
database function
from django.db.models.functions import Tan
Flights.objects.annotate(
altitude=ExpressionWrapper(expression=F('baseline') * Tan('angle'), output_field=models.FloatField())
)
Source:stackexchange.com
1👍
Use the Tan
database function
from django.db.models.functions import Tan
Flights.objects.annotate(
altitude=ExpressionWrapper(expression=F('baseline') * Tan('angle'), output_field=models.FloatField())
)