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

Closes #4997: Introduce OrderedDefaultRouter; move root API views to views.py

This commit is contained in:
Jeremy Stretch
2020-08-13 12:45:38 -04:00
parent a08418bff8
commit fd139a77f5
18 changed files with 118 additions and 97 deletions

View File

@@ -1,5 +1,6 @@
from django.contrib.auth.models import Group, User
from django.db.models import Count
from rest_framework.routers import APIRootView
from users import filters
from users.models import ObjectPermission
@@ -8,6 +9,14 @@ from utilities.querysets import RestrictedQuerySet
from . import serializers
class UsersRootView(APIRootView):
"""
Users API root view
"""
def get_view_name(self):
return 'Users'
#
# Users and groups
#