-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Tables from fields __all__ check (#83)
* fix: Remove `Tables` from being checked to use `__all__`. * fix: Use fields all checker * fix: Serializers version
- Loading branch information
Showing
10 changed files
with
92 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from nautobot.apps.filters import NautobotFilterSet | ||
|
||
|
||
class MyAddressObjectFilterSet(NautobotFilterSet): | ||
"""Filter for AddressObject.""" | ||
|
||
class Meta: | ||
"""Meta attributes for filter.""" | ||
|
||
fields = ("name", "description") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from nautobot.extras.forms import NautobotModelForm | ||
|
||
|
||
class AddressObjectSerializer(NautobotModelForm): | ||
"""Model Form for AddressObject.""" | ||
|
||
class Meta: | ||
"""Meta attributes for filter.""" | ||
|
||
fields = ("name", "description") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from nautobot.apps.api import NautobotModelSerializer | ||
|
||
|
||
class AddressObjectSerializer(NautobotModelSerializer): | ||
"""Serializer for AddressObject.""" | ||
|
||
class Meta: | ||
"""Meta attributes for filter.""" | ||
|
||
fields = ("name", "description") |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from nautobot.apps.filters import NautobotFilterSet | ||
|
||
|
||
class AddressObjectFilterSet(NautobotFilterSet): | ||
"""Filter for AddressObject.""" | ||
|
||
class Meta: | ||
"""Meta attributes for filter.""" | ||
|
||
fields = "__all__" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from nautobot.extras.forms import NautobotModelForm | ||
|
||
|
||
class AddressObjectSerializer(NautobotModelForm): | ||
"""Model Form for AddressObject.""" | ||
|
||
class Meta: | ||
"""Meta attributes for filter.""" | ||
|
||
fields = "__all__" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from nautobot.apps.api import NautobotModelSerializer | ||
|
||
|
||
class AddressObjectSerializer(NautobotModelSerializer): | ||
"""Serializer for AddressObject.""" | ||
|
||
class Meta: | ||
"""Meta attributes for filter.""" | ||
|
||
fields = "__all__" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters