Completed
Push — master ( 5e4583...f8d339 )
by Mathias
35s
created

DialogForm   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 Dialog, DialogVar
3
4
5
class DialogForm(forms.ModelForm):
6
    class Meta:
7
        model = Dialog
8
        fields = ['hash_entry', 'hash_id', 'callid', 'from_uri', 'from_tag', 'to_uri', 'to_tag', 'caller_cseq', 'callee_cseq', 'caller_route_set', 'callee_route_set', 'caller_contact', 'callee_contact', 'caller_sock', 'callee_stock', 'state', 'start_time', 'timeout', 'sflags', 'iflags', 'toroute_name', 'req_uri', 'xdata']
9
10
11
class DialogVarForm(forms.ModelForm):
12
    class Meta:
13
        model = DialogVar
14
        fields = ['hash_entry', 'hash_id', 'dialog_key', 'dialog_value']
15
16
17