Completed
Push — master ( f109e0...3262a6 )
by Mathias
45s
created

AccForm   A

Size/Duplication

Total Lines 4
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
1
from django import forms
2
from .models import Acc, AccCdr, MissedCall
3
4
5
class AccForm(forms.ModelForm):
6
    class Meta:
7
        model = Acc
8
        fields = ['method', 'from_tag', 'to_tag', 'callid', 'sip_code', 'sip_reason', 'time', 'time_attr', 'time_exten']
9
10
11
class AccCdrForm(forms.ModelForm):
12
    class Meta:
13
        model = AccCdr
14
        fields = ['start_time', 'end_time', 'duration']
15
16
17
class MissedCallForm(forms.ModelForm):
18
    class Meta:
19
        model = MissedCall
20
        fields = ['method', 'from_tag', 'to_tag', 'callid', 'sip_code', 'sip_reason', 'time']
21