title: How to store array in mysql database using django model?
body: <p>1.I have array of products and want to store it in mysql database using django model.I tried with 'ListTextField' in models.py as below,</p>
  
  <pre><code>products = ListTextField(
          base_field=models.CharField(max_length=255),
          size=100,  # Maximum of 100 products in list
  )
  </code></pre>
  
  <p>and I am using serializer to save data.But it is not working.</p>
  
  <p>2.If I want to save data manually from views.py.How should I pass array of products in model object.for example,</p>
  
  <pre><code>obj=ContactDeatils(name='abc',products=['aa','bb'])
  </code></pre>
  
  <p>This gives me 'invalid syntax error' near products.</p>
  
  <p>please help.</p>