I am editing the form , it loads data correctly buy when i hit save it creates new entry in database.
Here is the view functions
def create_account(requ
Have you tried something like this?
# Create a form to edit an existing Object.
a = Account.objects.get(pk=1)
f = AccountForm(instance=a)
f.save()
# Create a form to edit an existing Article, but use
# POST data to populate the form.
a = Article.objects.get(pk=1)
f = ArticleForm(request.POST, instance=a)
f.save()