[Fixed]-'unicode' object has no attribute '_meta' with Django

1👍

The problem is that you’re passing in a string for an instance (query_update).

form = IdentityForm(request.POST or None, instance = query_update)

Instead you need to pass in the single instance that your form is supposed to be updating

query_update_list.first() would probably get the one you need.

👤Sayse

Leave a comment