Skip to content

Commit

Permalink
Merge pull request #46 from Onemind-Services-LLC/NB-40-Field-name-is_…
Browse files Browse the repository at this point in the history
…enterprise-is-not-valid-for-model-NetBoxConfiguration-

Removed unknown is_enterprise field from serializer
  • Loading branch information
abhi1693 committed Jun 7, 2024
2 parents b6f8ba5 + 83a4705 commit e3b7be3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions netbox_paas/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ class NetBoxConfigurationSerializer(NetBoxModelSerializer):
env_name = serializers.CharField(
read_only=True,
)
is_enterprise = serializers.BooleanField(
read_only=True,
)
key = serializers.CharField(
write_only=True,
)
Expand All @@ -40,7 +37,6 @@ class Meta:
"display",
"env_name",
"env_name_storage",
"is_enterprise",
"license",
"key",
"description",
Expand All @@ -56,7 +52,7 @@ class NestedNetBoxConfigurationSerializer(WritableNestedSerializer):

class Meta:
model = NetBoxConfiguration
fields = ("id", "url", "display", "env_name", "env_name_storage", "is_enterprise")
fields = ("id", "url", "display", "env_name", "env_name_storage")


class NetBoxDBBackupSerializer(NetBoxModelSerializer):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name="netbox-paas",
version="0.3.0",
version="0.3.1",
description="Enhances NetBox on CloudMyDC's PaaS with advanced management and control features.",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit e3b7be3

Please sign in to comment.