forked from certsocietegenerale/FIR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodels.py
executable file
·36 lines (27 loc) · 1.06 KB
/
models.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from django.db import models
from django import forms
from incidents.models import IncidentCategory
class AbuseTemplate(models.Model):
name = models.CharField(max_length=100)
type = models.CharField(max_length=100, blank=True)
body = models.TextField()
subject = models.TextField()
incident_category = models.ForeignKey(IncidentCategory, blank=True, null=True)
def __unicode__(self):
return self.name
class AbuseContact(models.Model):
name = models.CharField(max_length=100)
to = models.CharField(max_length=100)
cc = models.CharField(max_length=100, blank=True)
bcc = models.CharField(max_length=100, blank=True)
incident_category = models.ForeignKey(IncidentCategory, blank=True, null=True)
type = models.CharField(max_length=100, blank=True)
def __unicode__(self):
return self.name
class EmailForm(forms.Form):
behalf = forms.CharField()
to = forms.CharField()
cc = forms.CharField()
bcc = forms.CharField()
subject = forms.CharField()
body = forms.CharField(widget=forms.Textarea)