We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9480fda commit 2ac4364Copy full SHA for 2ac4364
1 file changed
netbox_config_backup/graphql/types.py
@@ -3,22 +3,16 @@
3
import strawberry
4
import strawberry_django
5
6
-from netbox.graphql.types import NetBoxObjectType
+from netbox.graphql.types import PrimaryObjectType
7
from .filters import *
8
9
from netbox_config_backup import models
10
11
-__all__ = (
12
- 'BackupType',
13
-)
+__all__ = ('BackupType',)
14
15
16
-@strawberry_django.type(
17
- models.Backup,
18
- fields='__all__',
19
- filters=BackupFilter
20
21
-class BackupType(NetBoxObjectType):
+@strawberry_django.type(models.Backup, fields='__all__', filters=BackupFilter)
+class BackupType(PrimaryObjectType):
22
23
name: str
24
device: Annotated["DeviceType", strawberry.lazy('dcim.graphql.types')] | None
0 commit comments