mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-26 18:38: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',
|
||||
'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):
|
||||
fieldsets = (
|
||||
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'),
|
||||
queryset=ObjectType.objects.public(),
|
||||
required=False
|
||||
|
@ -189,6 +189,7 @@ class SubscriptionType(ObjectType):
|
||||
|
||||
@strawberry_django.type(
|
||||
models.TableConfig,
|
||||
fields='__all__',
|
||||
filters=TableConfigFilter,
|
||||
pagination=True
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user