1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

9856 update imports

This commit is contained in:
Arthur
2024-01-03 17:20:13 -08:00
parent de2d9edbd4
commit 7a222a6501
5 changed files with 36 additions and 31 deletions

View File

@@ -1,4 +1,5 @@
import strawberry
import strawberry_django
from django.contrib.auth import get_user_model
from django.contrib.auth.models import Group
from strawberry import auto
@@ -12,7 +13,7 @@ __all__ = (
)
@strawberry.django.type(
@strawberry_django.type(
Group,
fields=['id', 'name'],
filters=GroupFilter
@@ -23,7 +24,7 @@ class GroupType:
return RestrictedQuerySet(model=Group).restrict(info.context.request.user, 'view')
@strawberry.django.type(
@strawberry_django.type(
get_user_model(),
fields=[
'id', 'username', 'password', 'first_name', 'last_name', 'email', 'is_staff',