Skip to content

How to update custom field type Object(IPaddress) in Prefix using a script? #16823

Discussion options

You must be logged in to vote

I don't have existing data to check this against, but try using the numeric ID of the object, i.e.

prefix.custom_field_data['default_gateway'] = gw.pk

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by el-magneto
Comment options

You must be logged in to vote
1 reply
@candlerb
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants