8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-05 01:16:27 +00:00

Fix of copy/paste errors

This commit is contained in:
chapeau 2020-04-21 17:19:16 +02:00
parent 035f447fdd
commit 72984c12e3
3 changed files with 5 additions and 4 deletions

View file

@ -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):

View file

@ -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)

View file

@ -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