django-orchestra/orchestra/contrib/contacts/migrations/0001_initial.py
2015-04-08 14:41:09 +00:00

35 lines
7.8 KiB
Python

# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.core.validators
import orchestra.models.fields
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
('id', models.AutoField(auto_created=True, verbose_name='ID', primary_key=True, serialize=False)),
('short_name', models.CharField(max_length=128, verbose_name='short name')),
('full_name', models.CharField(max_length=256, verbose_name='full name', blank=True)),
('email', models.EmailField(max_length=254)),
('email_usage', orchestra.models.fields.MultiSelectField(max_length=256, verbose_name='email usage', choices=[('SUPPORT', 'Support tickets'), ('ADMIN', 'Administrative'), ('BILLING', 'Billing'), ('TECH', 'Technical'), ('ADDS', 'Announcements'), ('EMERGENCY', 'Emergency contact')], default=('SUPPORT', 'ADMIN', 'BILLING', 'TECH', 'ADDS', 'EMERGENCY'), blank=True)),
('phone', models.CharField(max_length=32, verbose_name='phone', blank=True)),
('phone2', models.CharField(max_length=32, verbose_name='alternative phone', blank=True)),
('address', models.TextField(verbose_name='address', blank=True)),
('city', models.CharField(max_length=128, verbose_name='city', blank=True)),
('zipcode', models.CharField(max_length=10, verbose_name='zip code', validators=[django.core.validators.RegexValidator('^[0-9,A-Z]{3,10}$', 'Enter a valid zipcode.', 'invalid')], blank=True)),
('country', models.CharField(max_length=20, verbose_name='country', choices=[('BI', 'Burundi'), ('MW', 'Malawi'), ('UZ', 'Uzbekistan'), ('UA', 'Ukraine'), ('CR', 'Costa Rica'), ('TG', 'Togo'), ('VA', 'Holy See'), ('SB', 'Solomon Islands'), ('UM', 'United States Minor Outlying Islands'), ('UY', 'Uruguay'), ('SV', 'El Salvador'), ('VI', 'Virgin Islands (U.S.)'), ('FJ', 'Fiji'), ('LS', 'Lesotho'), ('NG', 'Nigeria'), ('EC', 'Ecuador'), ('WS', 'Samoa'), ('BZ', 'Belize'), ('ZM', 'Zambia'), ('TL', 'Timor-Leste'), ('SO', 'Somalia'), ('VC', 'Saint Vincent and the Grenadines'), ('KM', 'Comoros'), ('JE', 'Jersey'), ('SC', 'Seychelles'), ('GG', 'Guernsey'), ('MC', 'Monaco'), ('SM', 'San Marino'), ('AE', 'United Arab Emirates'), ('MG', 'Madagascar'), ('PE', 'Peru'), ('NR', 'Nauru'), ('MA', 'Morocco'), ('MM', 'Myanmar'), ('GB', 'United Kingdom of Great Britain and Northern Ireland'), ('PN', 'Pitcairn'), ('AW', 'Aruba'), ('FI', 'Finland'), ('TT', 'Trinidad and Tobago'), ('BO', 'Bolivia (Plurinational State of)'), ('ET', 'Ethiopia'), ('PM', 'Saint Pierre and Miquelon'), ('PK', 'Pakistan'), ('TR', 'Turkey'), ('CV', 'Cabo Verde'), ('SZ', 'Swaziland'), ('GT', 'Guatemala'), ('RW', 'Rwanda'), ('AL', 'Albania'), ('TK', 'Tokelau'), ('AS', 'American Samoa'), ('SH', 'Saint Helena, Ascension and Tristan da Cunha'), ('CH', 'Switzerland'), ('ME', 'Montenegro'), ('KP', "Korea (the Democratic People's Republic of)"), ('HM', 'Heard Island and McDonald Islands'), ('EG', 'Egypt'), ('SR', 'Suriname'), ('IT', 'Italy'), ('RO', 'Romania'), ('CO', 'Colombia'), ('MN', 'Mongolia'), ('AD', 'Andorra'), ('PH', 'Philippines'), ('IS', 'Iceland'), ('MF', 'Saint Martin (French part)'), ('KE', 'Kenya'), ('BN', 'Brunei Darussalam'), ('SD', 'Sudan'), ('GI', 'Gibraltar'), ('WF', 'Wallis and Futuna'), ('KR', 'Korea (the Republic of)'), ('AT', 'Austria'), ('ES', 'Spain'), ('DJ', 'Djibouti'), ('TV', 'Tuvalu'), ('JO', 'Jordan'), ('YE', 'Yemen'), ('IO', 'British Indian Ocean Territory'), ('HU', 'Hungary'), ('JM', 'Jamaica'), ('KH', 'Cambodia'), ('LR', 'Liberia'), ('SG', 'Singapore'), ('NZ', 'New Zealand'), ('ID', 'Indonesia'), ('SI', 'Slovenia'), ('PF', 'French Polynesia'), ('SJ', 'Svalbard and Jan Mayen'), ('GW', 'Guinea-Bissau'), ('BE', 'Belgium'), ('MV', 'Maldives'), ('IQ', 'Iraq'), ('SS', 'South Sudan'), ('IR', 'Iran (Islamic Republic of)'), ('PR', 'Puerto Rico'), ('KY', 'Cayman Islands'), ('BY', 'Belarus'), ('AI', 'Anguilla'), ('EE', 'Estonia'), ('SL', 'Sierra Leone'), ('AG', 'Antigua and Barbuda'), ('CL', 'Chile'), ('VG', 'Virgin Islands (British)'), ('GY', 'Guyana'), ('NE', 'Niger'), ('TH', 'Thailand'), ('RE', 'Réunion'), ('MU', 'Mauritius'), ('BF', 'Burkina Faso'), ('NU', 'Niue'), ('NP', 'Nepal'), ('CK', 'Cook Islands'), ('TC', 'Turks and Caicos Islands'), ('MK', 'Macedonia (the former Yugoslav Republic of)'), ('GS', 'South Georgia and the South Sandwich Islands'), ('HT', 'Haiti'), ('CD', 'Congo (the Democratic Republic of the)'), ('DM', 'Dominica'), ('CW', 'Curaçao'), ('CG', 'Congo'), ('BR', 'Brazil'), ('GQ', 'Equatorial Guinea'), ('NA', 'Namibia'), ('AF', 'Afghanistan'), ('MH', 'Marshall Islands'), ('LV', 'Latvia'), ('DE', 'Germany'), ('ZW', 'Zimbabwe'), ('CN', 'China'), ('KI', 'Kiribati'), ('SN', 'Senegal'), ('NI', 'Nicaragua'), ('PT', 'Portugal'), ('FO', 'Faroe Islands'), ('NF', 'Norfolk Island'), ('HK', 'Hong Kong'), ('FM', 'Micronesia (Federated States of)'), ('TN', 'Tunisia'), ('BQ', 'Bonaire, Sint Eustatius and Saba'), ('KZ', 'Kazakhstan'), ('PS', 'Palestine, State of'), ('BH', 'Bahrain'), ('DZ', 'Algeria'), ('BM', 'Bermuda'), ('DK', 'Denmark'), ('TF', 'French Southern Territories'), ('KN', 'Saint Kitts and Nevis'), ('HN', 'Honduras'), ('MD', 'Moldova (the Republic of)'), ('BW', 'Botswana'), ('LU', 'Luxembourg'), ('QA', 'Qatar'), ('AZ', 'Azerbaijan'), ('AU', 'Australia'), ('ML', 'Mali'), ('MR', 'Mauritania'), ('MX', 'Mexico'), ('MS', 'Montserrat'), ('VN', 'Viet Nam'), ('IN', 'India'), ('SX', 'Sint Maarten (Dutch part)'), ('TZ', 'Tanzania, United Republic of'), ('SA', 'Saudi Arabia'), ('CY', 'Cyprus'), ('PA', 'Panama'), ('SY', 'Syrian Arab Republic'), ('VU', 'Vanuatu'), ('PL', 'Poland'), ('BA', 'Bosnia and Herzegovina'), ('LK', 'Sri Lanka'), ('CI', "Côte d'Ivoire"), ('AQ', 'Antarctica'), ('AO', 'Angola'), ('LT', 'Lithuania'), ('MT', 'Malta'), ('GU', 'Guam'), ('IL', 'Israel'), ('MP', 'Northern Mariana Islands'), ('TM', 'Turkmenistan'), ('FK', 'Falkland Islands [Malvinas]'), ('LC', 'Saint Lucia'), ('TO', 'Tonga'), ('UG', 'Uganda'), ('GF', 'French Guiana'), ('TD', 'Chad'), ('AX', 'Åland Islands'), ('CF', 'Central African Republic'), ('PW', 'Palau'), ('CU', 'Cuba'), ('EH', 'Western Sahara'), ('HR', 'Croatia'), ('GN', 'Guinea'), ('BV', 'Bouvet Island'), ('BL', 'Saint Barthélemy'), ('MO', 'Macao'), ('SE', 'Sweden'), ('IM', 'Isle of Man'), ('CM', 'Cameroon'), ('BG', 'Bulgaria'), ('BS', 'Bahamas'), ('NO', 'Norway'), ('AM', 'Armenia'), ('PY', 'Paraguay'), ('VE', 'Venezuela (Bolivarian Republic of)'), ('JP', 'Japan'), ('LI', 'Liechtenstein'), ('BJ', 'Benin'), ('SK', 'Slovakia'), ('GD', 'Grenada'), ('RU', 'Russian Federation'), ('ER', 'Eritrea'), ('RS', 'Serbia'), ('MQ', 'Martinique'), ('ZA', 'South Africa'), ('CA', 'Canada'), ('ST', 'Sao Tome and Principe'), ('LY', 'Libya'), ('CX', 'Christmas Island'), ('MZ', 'Mozambique'), ('GL', 'Greenland'), ('BT', 'Bhutan'), ('PG', 'Papua New Guinea'), ('BD', 'Bangladesh'), ('NL', 'Netherlands'), ('LB', 'Lebanon'), ('CC', 'Cocos (Keeling) Islands'), ('FR', 'France'), ('GH', 'Ghana'), ('KG', 'Kyrgyzstan'), ('GM', 'Gambia'), ('YT', 'Mayotte'), ('MY', 'Malaysia'), ('CZ', 'Czech Republic'), ('LA', "Lao People's Democratic Republic"), ('AR', 'Argentina'), ('IE', 'Ireland'), ('TW', 'Taiwan (Province of China)'), ('GR', 'Greece'), ('NC', 'New Caledonia'), ('OM', 'Oman'), ('GA', 'Gabon'), ('DO', 'Dominican Republic'), ('GE', 'Georgia'), ('KW', 'Kuwait'), ('BB', 'Barbados'), ('GP', 'Guadeloupe'), ('TJ', 'Tajikistan'), ('US', 'United States of America')], default='ES', blank=True)),
('account', models.ForeignKey(to=settings.AUTH_USER_MODEL, null=True, verbose_name='Account', related_name='contacts')),
],
),
]