maas-devel team mailing list archive
-
maas-devel team
-
Mailing list archive
-
Message #01622
Re: ProgrammingError: can't adapt type 'dict'
I think that was lack of importing __future__ stuff...
On May 6, 2014 1:30 PM, "Raphaël Badin" <raphael.badin@xxxxxxxxxxxxx> wrote:
> On 05/06/2014 12:29 PM, Raphaël Badin wrote:
>
>> On 05/05/2014 11:12 PM, Julian Edwards wrote:
>>
>>> ProgrammingError: can't adapt type 'dict'
>>>
>>
>> Can you provide the complete steps/context to recreate his? The error
>> indicates Django tried to save a dict into a field that doesn't support
>> it.
>>
>
> I manage to recreate it simply by running:
> >>> # fetch a node in `node`.
> >>> node.routers = {}
> >>> node.save()
> [...]
> ProgrammingError: can't adapt type 'dict'
>
> (http://paste.ubuntu.com/7406066/)
>
>
> --
> Mailing list: https://launchpad.net/~maas-devel
> Post to : maas-devel@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~maas-devel
> More help : https://help.launchpad.net/ListHelp
>
Follow ups
References