python - Django: Update exsisting record with form=MyForm(instance=MyID) doesn't work -
i'm try update existing record, had create form, in view call editrecipeform(instance=recipe.objects.get(id=recipe_id) in view don't appear existing fields. here structure of directory rsg ├── src | ├── recipes | | ├── forms | | | ├── __init__.py | | | └── update.py | | ├── __init__.py | | ├── admin.py | | ├── models.py | | ├── test.py | | ├── urls.py | | └── views.py | ├── rsg | | └── ... | ├── signups | | ├── ... | | └── ... | └── magnate.py ├── static ├── media ├── static ├── static-only ├── templates | ├── recipes | | ├── profileview.html | | ├── recipedit.html | | └── recipecreate.html | ├── signups | └── .... ├── ... └── index.hml here recipe models: rsg/src/recpes/models.py class recipe(models.model): name = models.charfield('nome',max_length=200) description = models.textfield('presentazione', null=true, blank=t...