mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-23 11:53:12 +00:00
Fix of copy/paste errors
This commit is contained in:
parent
77b0aff007
commit
cf7e293a1c
3 changed files with 5 additions and 4 deletions
|
@ -107,12 +107,12 @@ class SOASerializer(NamespacedHMSerializer):
|
||||||
|
|
||||||
|
|
||||||
class ExtensionSerializer(NamespacedHMSerializer):
|
class ExtensionSerializer(NamespacedHMSerializer):
|
||||||
"""Serialize `machines.models.Extension` objects.
|
"""Serialize machines.models.Extension objects.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = machines.Domain
|
model = machines.Extension
|
||||||
fields = ("interface_parent", "name", "extension", "cname", "api_url", "ttl")
|
fields = ("name", "need_infra", "origin", "origin_v6", "soa", "api_url")
|
||||||
|
|
||||||
|
|
||||||
class MxSerializer(NamespacedHMSerializer):
|
class MxSerializer(NamespacedHMSerializer):
|
||||||
|
|
|
@ -31,7 +31,7 @@ urls_viewset = [
|
||||||
(r"users/serviceuser", views.ServiceUserViewSet, None),
|
(r"users/serviceuser", views.ServiceUserViewSet, None),
|
||||||
(r"users/school", views.SchoolViewSet, None),
|
(r"users/school", views.SchoolViewSet, None),
|
||||||
(r"users/listright", views.ListRightViewSet, None),
|
(r"users/listright", views.ListRightViewSet, None),
|
||||||
(r"users/shell", views.ShellViewSet, None),
|
(r"users/shell", views.ShellViewSet, "shell"),
|
||||||
(r"users/ban", views.BanViewSet, None),
|
(r"users/ban", views.BanViewSet, None),
|
||||||
(r"users/whitelist", views.WhitelistViewSet, None),
|
(r"users/whitelist", views.WhitelistViewSet, None),
|
||||||
(r"users/emailaddress", views.EMailAddressViewSet, None)
|
(r"users/emailaddress", views.EMailAddressViewSet, None)
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
from rest_framework import viewsets, generics, views
|
from rest_framework import viewsets, generics, views
|
||||||
from django.db.models import Q
|
from django.db.models import Q
|
||||||
|
from django.contrib.auth.models import Group
|
||||||
|
|
||||||
from . import serializers
|
from . import serializers
|
||||||
from api.pagination import PageSizedPagination
|
from api.pagination import PageSizedPagination
|
||||||
|
|
Loading…
Reference in a new issue