Add contact fields. Closes #30.
This commit is contained in:
@ -7,6 +7,8 @@ from django_countries.fields import CountryField
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.template.defaultfilters import slugify
|
||||
from multiselectfield import MultiSelectField
|
||||
from phonenumber_field.modelfields import PhoneNumberField
|
||||
|
||||
from . import validators
|
||||
|
||||
|
||||
@ -815,16 +817,42 @@ class CaseStudy(models.Model):
|
||||
)
|
||||
|
||||
# 3.1.7.1 + 3.2.8.1
|
||||
contact_email = models.EmailField(
|
||||
verbose_name=_('Email address'),
|
||||
blank=True
|
||||
)
|
||||
|
||||
# 3.1.7.2 + 3.2.8.1
|
||||
contact_phone = PhoneNumberField(
|
||||
verbose_name=_('Phone number'),
|
||||
help_text=_('Please include the international prefix, beginning with "+".'),
|
||||
blank=True
|
||||
)
|
||||
|
||||
# 3.1.7.3 + 3.2.8.1
|
||||
contact_website = models.URLField(
|
||||
verbose_name=_('Website'),
|
||||
blank=True
|
||||
)
|
||||
|
||||
# 3.1.7.4 + 3.2.8.1
|
||||
contact_twitter = models.CharField(
|
||||
verbose_name=_('Twitter username'),
|
||||
max_length=50,
|
||||
blank=True
|
||||
)
|
||||
|
||||
# 3.1.7.5 + 3.2.8.1
|
||||
contact_facebook = models.URLField(
|
||||
verbose_name=_('Facebook page'),
|
||||
blank=True
|
||||
)
|
||||
|
||||
# 3.1.7.6 + 3.2.8.1
|
||||
contact_other = models.TextField(
|
||||
verbose_name=_('Other contact details'),
|
||||
blank=True
|
||||
)
|
||||
|
||||
# 3.2.1
|
||||
negative_case_reasons = MultiSelectField(
|
||||
|
Reference in New Issue
Block a user