How to construct a where clause using Django models:
insert in to tablename where email=emailaddress
Thanks.
How to construct a where clause using Django models:
insert in to tablename where email=emailaddress
Thanks.
I think you are rather looking for a possibility to UPDATE an existing object.
obj=MyModel.objects.get(email=emailaddress)
obj.name = 'xxxx'
obj.save()