回答編集履歴
1
修正
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
|
|