Is there a way to make this query work with Django?
stage = Task.objects.filter(id = input_stage.id)\
.update(start_date = max(data.get('start_date'), F('start_date')),
finish_date = max(data.get('finish_date'), F('finish_date')))
Now I get an error:
TypeError: '>' not supported between instances of 'F' and 'datetime.date'