Skip to content

Contact has no field named 'group' #19437

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
LHBL2003 opened this issue May 8, 2025 · 1 comment
Closed

Contact has no field named 'group' #19437

LHBL2003 opened this issue May 8, 2025 · 1 comment
Labels
severity: low Does not significantly disrupt application functionality, or a workaround is available status: duplicate This issue has already been raised status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@LHBL2003
Copy link

LHBL2003 commented May 8, 2025

Deployment Type

NetBox Cloud

NetBox Version

v4.3.0

Python Version

3.12

Steps to Reproduce

  • Remove all contact-groups
  • Search in the global search for a 2 to 3-digit number.

It's a bit difficult to catch one. The results are not necessarily empty.
Here are a few hits. I can't yet say why this is the case, but it happens to us too.

https://demo.netbox.dev/search/?q=12
https://demo.netbox.dev/search/?q=55
https://demo.netbox.dev/search/?q=126

Result:

Image

Expected Behavior

No Server Error

Observed Behavior

There was a problem with your request. Please contact an administrator.

The complete exception is provided below:

<class 'django.core.exceptions.FieldDoesNotExist'>

Contact has no field named 'group'

Python version: 3.12.9
NetBox version: 4.3.0
Plugins:
netbox_demo: 0.5.0
If further assistance is required, please post to the NetBox discussion forum on GitHub.

@LHBL2003 LHBL2003 added type: bug A confirmed report of unexpected behavior in the application status: needs triage This issue is awaiting triage by a maintainer labels May 8, 2025
@arthanson
Copy link
Collaborator

Traceback (most recent call last):
  File "/Users/ahanson/dev/work/netbox/venv/lib/python3.13/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
  File "/Users/ahanson/dev/work/netbox/venv/lib/python3.13/site-packages/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/Users/ahanson/dev/work/netbox/venv/lib/python3.13/site-packages/django/views/generic/base.py", line 104, in view
    return self.dispatch(request, *args, **kwargs)
           ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ahanson/dev/work/netbox/netbox/utilities/views.py", line 39, in dispatch
    return super().dispatch(request, *args, **kwargs)
           ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ahanson/dev/work/netbox/venv/lib/python3.13/site-packages/django/views/generic/base.py", line 143, in dispatch
    return handler(request, *args, **kwargs)
  File "/Users/ahanson/dev/work/netbox/netbox/netbox/views/misc.py", line 86, in get
    results = search_backend.search(
        form.cleaned_data['q'],
    ...<2 lines>...
        lookup=lookup
    )
  File "/Users/ahanson/dev/work/netbox/netbox/netbox/search/backends.py", line 168, in search
    field = model._meta.get_field(attr)
  File "/Users/ahanson/dev/work/netbox/venv/lib/python3.13/site-packages/django/db/models/options.py", line 685, in get_field
    raise FieldDoesNotExist(
        "%s has no field named '%s'" % (self.object_name, field_name)
    )
django.core.exceptions.FieldDoesNotExist: Contact has no field named 'group'

@jeremystretch jeremystretch added status: duplicate This issue has already been raised and removed status: needs triage This issue is awaiting triage by a maintainer labels May 8, 2025
@arthanson arthanson added status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation severity: low Does not significantly disrupt application functionality, or a workaround is available labels May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity: low Does not significantly disrupt application functionality, or a workaround is available status: duplicate This issue has already been raised status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

3 participants