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

TrustedForm   A

Size/Duplication

Total Lines 4
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
1
from django import forms
2
from .models import UacReg, Trusted
3
4
5
class UacRegForm(forms.ModelForm):
6
    class Meta:
7
        model = UacReg
8
        fields = ['l_uuid', 'l_username', 'l_domain', 'r_username', 'r_domain', 'realm', 'auth_username', 'auth_password', 'auth_ha1', 'auth_proxy', 'expires', 'flags', 'reg_delay']
9
10
11
class TrustedForm(forms.ModelForm):
12
    class Meta:
13
        model = Trusted
14
        fields = ['src_ip', 'proto', 'from_pattern', 'ruri_pattern', 'tag', 'priority']
15
16
17