Closed captainCrench closed 5 months ago
The error: _Traceback (most recent call last): File "/opt/netbox/netbox/utilities/api.py", line 32, in get_serializer_for_model return dynamic_import(serializer_name) File "/opt/netbox/netbox/utilities/utils.py", line 126, in dynamic_import mod = getattr(mod, comp) AttributeError: module 'nbservice.api.serializers' has no attribute 'ServiceSerializer'
Error in my 3.7.3 setup:
Applying database migrations (python3 netbox/manage.py migrate)...
Traceback (most recent call last):
File "/opt/netbox-3.7.3/netbox/manage.py", line 10, in
Same problem!
@opensourceXnetbox, @misch42, @captainCrench please update the plugin to 2.0.0
@opensourceXnetbox, @misch42, @captainCrench please update the plugin to 2.0.0
Hey @renatoalmeidaoliveira, thanks for the fix, it works perfectly.
thanks. works for me now.
It looks like some issues with forms as things may have been moved around. Was able to verify this fixes it:
from utilities.forms import BootstrapMixin from utilities.forms.widgets import DatePicker from utilities.forms.fields import DynamicModelMultipleChoiceField, DynamicModelChoiceField
But when trying to add a service, I get a serializer exception so there may be more edits needed to get this to work on newer Netbox versions.