mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
* Rename sequences & indexes after renaming users table * Migrate from auth.Group to a custom group model * Delete original groups from auth_group table * Update object & multi-object custom fields referencing the Group model * Fix ContentType resolution * Clean up obsolete logic for view/serializer resolution
17 lines
433 B
Python
17 lines
433 B
Python
from typing import List
|
|
import strawberry
|
|
import strawberry_django
|
|
|
|
from django.contrib.auth import get_user_model
|
|
from django.contrib.auth.models import Group
|
|
from .types import *
|
|
|
|
|
|
@strawberry.type
|
|
class UsersQuery:
|
|
group: GroupType = strawberry_django.field()
|
|
group_list: List[GroupType] = strawberry_django.field()
|
|
|
|
user: UserType = strawberry_django.field()
|
|
user_list: List[UserType] = strawberry_django.field()
|