Skip to content

django.core.exceptions.FieldError after upgrade #19830

Closed
@IliasTsarouchas

Description

@IliasTsarouchas

Deployment Type

Self-hosted

NetBox Version

v4.3.3

Python Version

3.10

Steps to Reproduce

Upgrade from 4.0.11

login with a restricted user resulting in:

Cannot resolve keyword 'site' into field. Choices are: _location, _location_id, _region, _region_id, _site, _site_group, _site_group_id, _site_id, bookmarks, comments, contacts, created, custom_field_data, description, devices, group, group_id, id, journal_entries, last_updated, name, scope, scope_id, scope_type, scope_type_id, status, subscriptions, tagged_items, tags, tenant, tenant_id, type, type_id, virtual_machines, vlan_groups

Python version: 3.10.12
NetBox version: 4.3.3
Plugins: None installed

We have multiple sites and the users are restricted so they can only modify their site's devices and view the devices of other sites.

Did the syntax change?

Also if the user manages to reach a device he is allowed to modify the edit button errors. Thanks in advance for your help. If you need more informations - please advice and I ll provide anything needed.

Expected Behavior

The user should be able to login and modify devices and objects he has access to.

Observed Behavior

django error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions