Django dumpdata of model with hstore.DictionaryField

25 views
Skip to first unread message

Антон Алексаненков

unread,
Feb 27, 2015, 4:22:09 AM2/27/15
to django...@googlegroups.com
Hi guys,

thanks for your app, it's cool

I'm trying to use django command dumpdata on my model with hstore.DictionaryField:

urls = hstore.DictionaryField(blank=True, schema=[
        {
            'name': 'site',
            'class': 'URLField',
            'kwargs': {
                'blank': True
            }
        }
        {
            'name': 'facebook',
            'class': 'URLField',
            'kwargs': {
                'blank': True
            }
        }
    ])

but command crying with:

CommandError: Unable to serialize database: 'str' object has no attribute 'get'

How I can fix it?

Thanks

nemesis

unread,
Mar 17, 2015, 11:45:22 AM3/17/15
to django...@googlegroups.com
HI Антон,

I tried now the dumpdata command and I got no error back.

What's your setting?

Reply all
Reply to author
Forward
0 new messages