ArrayField returns wrong value
Question: I am using PostgreSQL with Django and am trying to use

    
    
    ArrayField(CharField())
    

Neither storing values nor retrieving raises any exceptions, but attepmting to
store `["string", "another_string", "string with whitespaces", "str"]` and
then retrieve it returns

    
    
    '{string,another_string,"string with whitespaces",str}'
    

This issue does not occur when using `ArrayField(IntegerField())` or
`ArrayField(ArrayField(CharField()))`

While I know I could just use JSON or nest the list in another list to get
[[strings]] which would be correctly read, I'd like to know why this is
happening.

* * *

EDIT: As it turns out, using `ArrayField(ArrayField(CharField()))` doesn't
work either:

    
    
    Python 3.3.2 (default, Mar 20 2014, 20:25:51) 
    [GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    (InteractiveConsole)
    >>> from api.models import Game
    >>> g = Game.objects.all()[0]
    >>> g.p1hand = [["a", "b", "c d"]]
    >>> g.p1hand
    [['a', 'b', 'c d']]
    >>> g.save()
    >>> g = Game.objects.all()[0]
    >>> g.p1hand
    '{{a,b,"c d"}}'
    >>>
    

I have no idea why it works in a single instance of
`ArrayField(ArrayField(CharField()))`

* * *

EDIT: With regards to @LongBeard_Boldy, this is what another instance of
`ArrayField(ArrayField(CharField()))` returns:

    
    
    >>> g.game_objects
    [['Test', '3', '3', '0', 'building', '5', '2', '2', '0'], ....]
    


Answer: I had the same problem and it ended up being a problem with the migrations. I
did include the field in the models.py file but I did not migrate, so django
was kind of understanding how to process the lists but not how to retrieve
them.

As soon as I migrated the database, everything works perfectly.

