mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 07:23:46 +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):
|
||||
"""Serialize `machines.models.Extension` objects.
|
||||
"""Serialize machines.models.Extension objects.
|
||||
"""
|
||||
|
||||
class Meta:
|
||||
model = machines.Domain
|
||||
fields = ("interface_parent", "name", "extension", "cname", "api_url", "ttl")
|
||||
model = machines.Extension
|
||||
fields = ("name", "need_infra", "origin", "origin_v6", "soa", "api_url")
|
||||
|
||||
|
||||
class MxSerializer(NamespacedHMSerializer):
|
||||
|
|
|
@ -31,7 +31,7 @@ urls_viewset = [
|
|||
(r"users/serviceuser", views.ServiceUserViewSet, None),
|
||||
(r"users/school", views.SchoolViewSet, 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/whitelist", views.WhitelistViewSet, None),
|
||||
(r"users/emailaddress", views.EMailAddressViewSet, None)
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
|
||||
from rest_framework import viewsets, generics, views
|
||||
from django.db.models import Q
|
||||
from django.contrib.auth.models import Group
|
||||
|
||||
from . import serializers
|
||||
from api.pagination import PageSizedPagination
|
||||
|
|
Loading…
Reference in a new issue