-
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.
Merge pull request #76 from nautobot/u/snaselj-fix-viewset
Fix UIViewSet sub class name
- Loading branch information
Showing
8 changed files
with
76 additions
and
4 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
Empty file.
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,12 @@ | ||
from nautobot.apps.tables import BaseTable | ||
|
||
from . import models | ||
|
||
|
||
class MyAddressObjectTable(BaseTable): | ||
"""Filter for AddressObject.""" | ||
|
||
class Meta: | ||
"""Meta attributes for filter.""" | ||
|
||
model = models.AddressObject |
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,9 @@ | ||
from nautobot.apps.views import NautobotUIViewSet | ||
|
||
from . import models | ||
|
||
|
||
class MyAddressObjectUIViewSet(NautobotUIViewSet): | ||
"""Filter for AddressObject.""" | ||
|
||
queryset = models.AddressObject.objects.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,12 @@ | ||
from nautobot.apps.tables import BaseTable | ||
|
||
from . import models | ||
|
||
|
||
class AddressObjectTable(BaseTable): | ||
"""Filter for AddressObject.""" | ||
|
||
class Meta: | ||
"""Meta attributes for filter.""" | ||
|
||
model = models.AddressObject |
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,9 @@ | ||
from nautobot.apps.views import NautobotUIViewSet | ||
|
||
from . import models | ||
|
||
|
||
class AddressObjectUIViewSet(NautobotUIViewSet): | ||
"""Filter for AddressObject.""" | ||
|
||
queryset = models.AddressObject.objects.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,5 @@ | ||
from nautobot.core.models.generics import PrimaryModel | ||
|
||
|
||
class AddressObject(PrimaryModel): | ||
pass |
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