Skip to content
Discussion options

You must be logged in to vote

You have to call .save() for the object to be persisted to the database.

Something like this (untested):

interface = Interface.objects.get(name="ONB1",device__name="MG-P-ESXED21")
interface.type = "10gbase-t"
interface.full_clean()
interface.save()

Replies: 1 comment 1 reply

Comment options

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

Answer selected by zshorvat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants