Completed
Push — master ( 3262a6...1cd89d )
by Mathias
40s
created

UacRegSerializer   A

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 19
rs 10
1
from . import models
2
3
from rest_framework import serializers
4
5
6
class UacRegSerializer(serializers.ModelSerializer):
7
8
    class Meta:
9
        model = models.UacReg
10
        fields = (
11
            'pk', 
12
            'l_uuid', 
13
            'l_username', 
14
            'l_domain', 
15
            'r_username', 
16
            'r_domain', 
17
            'realm', 
18
            'auth_username', 
19
            'auth_password', 
20
            'auth_ha1', 
21
            'auth_proxy', 
22
            'expires', 
23
            'flags', 
24
            'reg_delay', 
25
        )
26
27
28
class TrustedSerializer(serializers.ModelSerializer):
29
30
    class Meta:
31
        model = models.Trusted
32
        fields = (
33
            'pk', 
34
            'src_ip', 
35
            'proto', 
36
            'from_pattern', 
37
            'ruri_pattern', 
38
            'tag', 
39
            'priority', 
40
        )
41
42
43