'django method return f'Edit {self.object.name}'

What does the return statement in the get_headline method do? And also why am I getting a syntax error?

Nota: I am using python 2.7

Here is the class:

class Update(LoginRequiredMixin,SetHeadLinesMixin, generic.CreateView):
    form_class = forms.CompanyForm
    success_url = reverse_lazy('users:dashboard')
    template_name = 'users/company_form.html'

    def get_queryset(self):
        return self.user.companies.all()

    def get_headline(self):
        return f'Edit {self.object.name}'


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source