Fixes error state for goal

This commit is contained in:
Mouse Reeve 2021-01-19 07:40:37 -08:00
parent 589c128793
commit c1c7b68fc1

View file

@ -52,7 +52,7 @@ class Goal(View):
form = forms.GoalForm(request.POST, instance=goal)
if not form.is_valid():
data = {
'title': '%s\'s %d Reading' % (goal.user.display_name, year),
'title': '%s\'s %d Reading' % (request.user.display_name, year),
'goal_form': form,
'goal': goal,
'year': year,