From 5dfd19e604e912ba4d3044aa3bad4083f9718fcf Mon Sep 17 00:00:00 2001 From: Moritz Rosenthal Date: Tue, 30 Jun 2015 07:11:31 +0200 Subject: [PATCH] Fixed copy and paste failure in the forms tutorial --- tutorials/05-forms.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/05-forms.rst b/tutorials/05-forms.rst index 6e65cdd..bb3873d 100644 --- a/tutorials/05-forms.rst +++ b/tutorials/05-forms.rst @@ -360,7 +360,7 @@ method to our view: def get_form_kwargs(self): kwargs = super().get_form_kwargs() - kwargs['entry'] = self.entry + kwargs['entry'] = self.get_object() return kwargs def get_context_data(self, **kwargs):