maas-devel team mailing list archive
-
maas-devel team
-
Mailing list archive
-
Message #01625
Re: ProgrammingError: can't adapt type 'dict'
On 07/05/14 04:30, Raphaël Badin 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/)
In my case I did something like:
>>> from maasserver.models import Node
>>> node = Node.objects.all()[0]
>>> node.set_distro_series('')
References