回答編集履歴

1

修正

2020/05/08 08:12

投稿

ForestSeo
ForestSeo

スコア2722

test CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
  context = super().get_context_data(**kwargs)
18
18
 
19
- context['form'] = OrderForm(initial={'TestText':Register.objects.get(pk=self.kwargs.get('pk'))})
19
+ context['form'] = OrderForm(initial={'TestText':Register.objects.get(pk=self.kwargs.get('pk')).name})
20
20
 
21
21
  return context
22
22