You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I took a crack at fixing this, and I think I've got it working.
Basically I just added the TaggedModelSerializerMixin to all the classes that inherit from NautobotModelSerializer in nautobot_firewall_models/api/serializers.py, except for the M2M ones at the bottom of the file.
Then I added '.prefetch_related("tags")' to the end of the "objects.all()" line in each of the corresponding ViewSet classes in nautobot_firewall_models/api/views.py. Now I see tags are returned for these objects in our local instance, and I'm able to add new tags to the objects through the API using pynautobot.
Is a pull request a good way to submit this for review, to see if it's good to add to the plugin?
Environment
Expected Behavior
When querying an object using pynautobot or the API, I expect to be able to retrieve and set tags of an object
Observed Behavior
No tags are available
Steps to Reproduce
This is visible via the demo instance
This is just the address object, but all objects that support tags via the GUI should also support tags via the API.
The text was updated successfully, but these errors were encountered: