[Answer]-New to DJango need to fill form with initial data in get_data

1👍

You are trying to construct your initial value dictionary incorrectly using a comma (,) instead of a colon and also using the wrong choice key. Instead of

form = SsaForm(initial = {"status", "Good"})

try

form = SsaForm(initial = {"status": "GOOD"})
👤Selcuk

Leave a comment