data = {
"managers": [
{
"name": "react",
"department": "develop",
"position": "PM",
"phone_number": "01022145512",
},
{
"name": "ajax",
"department": "market",
"position": "engineer",
"phone_number": "01032145567",
}
],
"business_license_number": "asdsasasssdsa",
"business_store_type": "online",
"business_condition": "service",
"joined_date": "2021-02-02",
"business_classification": "personal",
"business_name": "doldam",
"business_main_item": "food",
"application_route": "0001",
"sales_channel": "0",
"transaction_amount": null,
"past_pg_company": "",
"business_official_address": "",
"business_real_address": "",
"initial_registration_fee": 0,
"annual_management_fee": 0,
"guarantee_insurance_policy": true,
"contact_receipt": false,
"contact_current_status": "ct_consult",
"contact_type": "normal"
}
-------------------------------------------------------------------
models.py
class Owner(models.Model):
joined_date = models.DateField("접수일", auto_now_add=True)
business_classification = models.CharField("사업체구분", max_length=100)
business_name = models.CharField("상호명", max_length=100)
business_main_item = models.CharField('주요판매물품', max_length=100)
application_route = models.CharField("접수경로", max_length=100, )
sales_channel = models.CharField("영업채널", max_length=100, blank=True)
class Manager(models.Model):
owners = models.ManyToManyField(Owner, related_name='managers', blank=True, help_text='사업자등록')
name = models.CharField('담당자이름', max_length=100)
department = models.CharField('담당자부서', max_length=100)
position = models.CharField('담당자직책', max_length=100)
phone_number = models.CharField('담당자핸드폰번호', max_length=100, )
email = models.EmailField("담당자_EMAIL", max_length=255)
-------------------------------------------------------------------
serializers.py