Contact has no field named 'group' #11144

Closed
opened 2025-12-29 21:40:56 +01:00 by adam · 1 comment
Owner

Originally created by @LHBL2003 on GitHub (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.

Originally created by @LHBL2003 on GitHub (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](https://github.com/user-attachments/assets/9e8614ee-d755-40b3-951e-12c84416ff81) ### 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](https://github.com/netbox-community/netbox/discussions) on GitHub.
adam added the type: bugstatus: duplicatestatus: needs ownerseverity: low labels 2025-12-29 21:40:56 +01:00
adam closed this issue 2025-12-29 21:40:56 +01:00
Author
Owner

@arthanson commented on GitHub (May 8, 2025):

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'

@arthanson commented on GitHub (May 8, 2025): ``` 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' ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11144