Skip to content

v0.1.1

Latest

Choose a tag to compare

@dcode dcode released this 25 Aug 17:26
Immutable release. Only release title and notes can be modified.
e6a8028

Fixed

  • Import NetBox's own users.models.Group, not django.contrib.auth.models.Group. NetBox 4.x replaces Django's stock auth Group entirely with its own model (separate table; User.groups points there) — importing the wrong one produced TypeError: Field 'id' expected a number but got <Group: ...> at real login time.
  • Drop the is_staff assignment — NetBox's User model has no such field, so it was a silent no-op.

Testing

Added testapp/users/, a stand-in mirroring NetBox's actual Group/User shape, so the test suite now exercises the real import path this bug was in.

Full Changelog: v0.1.0...v0.1.1