'Group' object has no attribute 'user_set' #16098
-
Deployment TypeSelf-hosted NetBox Versionv4.0.0 Python Version3.11 Steps to ReproduceHi, Following this discussion If in a custom pipeline, calling netbox authentication model with I can't add users to a group with group.user_set.add(user)
I can still add groups to a user with user.groups.add(group) (many to many relationship issue ?) Expected BehaviorI should be able to add users to a group, like I can add groups to user Observed BehaviorRegression from Django |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You should use |
Beta Was this translation helpful? Give feedback.
You should use
group.users.add(user)