Skip to content

edit form with referencefield returns object with string #323

Description

@xyzones

I have my model definition including reference field. Form is saved correctly, however when editing the data the reference fields are not returned correctly.

# object.to_json() 
{
...
 'Builder': <Choices: Choices object>,`
...
}

# form.data 
{
...
'builder': 'Choices object',
...
}

I would expect to have the Choices object id returned not the object as a string.

What am I missing?

Regards,

Attila

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions