mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 02:48:38 -06:00
Misc cleanup
This commit is contained in:
parent
41122f5321
commit
1957f2c294
@ -19,4 +19,4 @@ class TableConfigSerializer(ValidatedModelSerializer):
|
|||||||
'id', 'url', 'display_url', 'display', 'object_type', 'table', 'name', 'slug', 'description', 'user',
|
'id', 'url', 'display_url', 'display', 'object_type', 'table', 'name', 'slug', 'description', 'user',
|
||||||
'weight', 'enabled', 'shared', 'columns', 'ordering', 'created', 'last_updated',
|
'weight', 'enabled', 'shared', 'columns', 'ordering', 'created', 'last_updated',
|
||||||
]
|
]
|
||||||
brief_fields = ('id', 'url', 'display', 'name', 'slug', 'description')
|
brief_fields = ('id', 'url', 'display', 'name', 'slug', 'description', 'object_type', 'table')
|
||||||
|
@ -253,9 +253,9 @@ class SavedFilterFilterForm(SavedFiltersMixin, FilterForm):
|
|||||||
class TableConfigFilterForm(SavedFiltersMixin, FilterForm):
|
class TableConfigFilterForm(SavedFiltersMixin, FilterForm):
|
||||||
fieldsets = (
|
fieldsets = (
|
||||||
FieldSet('q', 'filter_id'),
|
FieldSet('q', 'filter_id'),
|
||||||
FieldSet('object_type', 'enabled', 'shared', 'weight', name=_('Attributes')),
|
FieldSet('object_type_id', 'enabled', 'shared', 'weight', name=_('Attributes')),
|
||||||
)
|
)
|
||||||
object_type = ContentTypeMultipleChoiceField(
|
object_type_id = ContentTypeMultipleChoiceField(
|
||||||
label=_('Object types'),
|
label=_('Object types'),
|
||||||
queryset=ObjectType.objects.public(),
|
queryset=ObjectType.objects.public(),
|
||||||
required=False
|
required=False
|
||||||
|
@ -189,6 +189,7 @@ class SubscriptionType(ObjectType):
|
|||||||
|
|
||||||
@strawberry_django.type(
|
@strawberry_django.type(
|
||||||
models.TableConfig,
|
models.TableConfig,
|
||||||
|
fields='__all__',
|
||||||
filters=TableConfigFilter,
|
filters=TableConfigFilter,
|
||||||
pagination=True
|
pagination=True
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user