for example I have two models
class User(models.Model):
username = models.CharField(max_length=100,unique=True)
password = models.CharField(max_length=100,null=False,blank=False)
class Car(models.Model):
user = models.ForeignKey(User)
car_name = models.CharField(max_length=100,null=True,blank=True)
car_price = models.CharField(max_length=100,null=True,blank=True)
each user can have multiple cars.
I would like to add car name and price by making post request something like
curl -X POST -d "car_name=BMW&car_price=$0.5M" -u username:userpasswd