Error when importing custom fields #12259
Unanswered
harryjr
asked this question in
Help Wanted!
Replies: 2 comments 5 replies
-
Here is the simple .yaml file I am using to test: VLAN_Domain_ID: |
Beta Was this translation helpful? Give feedback.
4 replies
-
Sadly just ran into this. Python version: 3.11.4 Import Data:
Stack trace from sentry: AttributeError:'NoneType' object has no attribute 'app_label'
File "django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "django/views/generic/base.py", line 104, in view
return self.dispatch(request, *args, **kwargs)
File "netbox/views/generic/base.py", line 77, in dispatch
return super().dispatch(request, *args, **kwargs)
File "utilities/views.py", line 99, in dispatch
return super().dispatch(request, *args, **kwargs)
File "django/views/generic/base.py", line 143, in dispatch
return handler(request, *args, **kwargs)
File "netbox/views/generic/bulk_views.py", line 456, in post
new_objs = self.create_and_update_objects(form, request)
File "netbox/views/generic/bulk_views.py", line 414, in create_and_update_objects
if model_form.is_valid():
File "django/forms/forms.py", line 201, in is_valid
return self.is_bound and not self.errors
File "django/forms/forms.py", line 196, in errors
self.full_clean()
File "django/forms/forms.py", line 433, in full_clean
self._clean_fields()
File "django/forms/forms.py", line 445, in _clean_fields
value = field.clean(value)
File "django/forms/models.py", line 1580, in clean
value = self.prepare_value(value)
File "utilities/forms/fields/csv.py", line 118, in prepare_value
return content_type_identifier(value)
File "utilities/utils.py", line 464, in content_type_identifier
return f'{ct.app_label}.{ct.model}' |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am sure this is not a formatting issue. I previously exported all of my custom fields into CSV. After deleting them, I have tried to import them back again. I have also tried to create a simple YAML file with one object to import, but get the same error:
<class 'AttributeError'>
'NoneType' object has no attribute 'app_label'
Python version: 3.9.13
NetBox version: 3.4.5
Beta Was this translation helpful? Give feedback.
All reactions