I was hoping you could include some code to allow existing entries to be edited using the same form. Previously when using Django natively I would use something like:
instance = get_object_or_404(MyModel, id=id)
form = MyForm(request.POST or None, instance=instance)
Hi There,
I was hoping you could include some code to allow existing entries to be edited using the same form. Previously when using Django natively I would use something like:
instance = get_object_or_404(MyModel, id=id) form = MyForm(request.POST or None, instance=instance)
Appreciate the help! Thanks Tyler