Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix import issue
Browse files Browse the repository at this point in the history
miaow2 committed Sep 14, 2024
1 parent 7db9722 commit fb51dee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion netbox_config_diff/api/serializers.py
Original file line number Diff line number Diff line change
@@ -5,15 +5,19 @@
from netbox.settings import VERSION
from rest_framework import serializers
from rest_framework.serializers import ValidationError
from users.api.nested_serializers import NestedUserSerializer

from netbox_config_diff.choices import ConfigComplianceStatusChoices, ConfigurationRequestStatusChoices
from netbox_config_diff.constants import ACCEPTABLE_DRIVERS
from netbox_config_diff.models import ConfigCompliance, ConfigurationRequest, PlatformSetting, Substitute

if VERSION.startswith("3."):
from users.api.nested_serializers import NestedUserSerializer
from utilities.utils import local_now
elif VERSION.startswith("4.0"):
from users.api.nested_serializers import NestedUserSerializer
from utilities.datetime import local_now
else:
from users.api.serializers_.nested import NestedUserSerializer
from utilities.datetime import local_now


0 comments on commit fb51dee

Please sign in to comment.