1 models.User.objects.create(c1='a',c2='b') 2 3 obj=models.User(c1='a',c2='b') 4 obj.save()
1 models.User.objects.get(id=1) 2 models.User.objects.all() 3 models.User.objects.filter(id=2) 4 models.User.objects.exclude(name='anna')
1 models.User.objects.filter(username='anna').remove()
1 models.User.objects.filter(username='anna').update(gender=0) 2 obj=models.User.objects.get(id=1) 3 obj.gender='0' 4 obj.save()