tags:

views:

35

answers:

1

How to construct a where clause using Django models:

insert in to tablename where email=emailaddress

Thanks.

+1  A: 

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()
lazerscience
Yap I figured it out thanks by the way...
MMRUser