I'm trying to do a little division math in my view for an HTML display. For some reason I'm not getting a calculation with the below view. I'm new to all this so any suggestions would be appreciated.
View

```
from django.db.models.functions import Cast
from django.db.models import FloatField, F

class PatientListView(LoginRequiredMixin, ListView, Cast, FloatField):
    model = Patient
    template_name = 'patient_list.html'
    ind_treat_length = Patient.objects.annotate(treat_len=( F('cycle_length_days') / F('treatments_per_cycle')))

    def get_queryset(self, *args, **kwargs):
        return super().get_queryset(*args, **kwargs).filter(
            author=self.request.user
        )

```

The ind\_treat\_length annotation is what I have come up with for this. My HTML template request is

```
{{ patient.treat_len }}

```

Am I missing something here?

Thanks