|
1
|
|
|
# -*- coding: utf-8 -*- |
|
2
|
|
|
from south.utils import datetime_utils as datetime |
|
3
|
|
|
from south.db import db |
|
4
|
|
|
from south.v2 import SchemaMigration |
|
5
|
|
|
from django.db import models |
|
6
|
|
|
|
|
7
|
|
|
|
|
8
|
|
|
class Migration(SchemaMigration): |
|
9
|
|
|
|
|
10
|
|
|
def forwards(self, orm): |
|
11
|
|
|
# Deleting model 'ContractDid' |
|
12
|
|
|
db.delete_table('did_contract') |
|
13
|
|
|
|
|
14
|
|
|
|
|
15
|
|
|
# Changing field 'RoutesDid.contract_did' |
|
16
|
|
|
db.alter_column('did_routes', 'contract_did_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['did.Did'])) |
|
17
|
|
|
# Deleting field 'Did.plan' |
|
18
|
|
|
db.delete_column('did', 'plan_id') |
|
19
|
|
|
|
|
20
|
|
|
# Deleting field 'Did.max_channels' |
|
21
|
|
|
db.delete_column('did', 'max_channels') |
|
22
|
|
|
|
|
23
|
|
|
# Adding field 'Did.prov_plan' |
|
24
|
|
|
db.add_column('did', 'prov_plan', |
|
25
|
|
|
self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['did.ProviderRatesDid']), |
|
26
|
|
|
keep_default=False) |
|
27
|
|
|
|
|
28
|
|
|
# Adding field 'Did.prov_max_channels' |
|
29
|
|
|
db.add_column('did', 'prov_max_channels', |
|
30
|
|
|
self.gf('django.db.models.fields.PositiveIntegerField')(default=1), |
|
31
|
|
|
keep_default=False) |
|
32
|
|
|
|
|
33
|
|
|
# Adding field 'Did.customer' |
|
34
|
|
|
db.add_column('did', 'customer', |
|
35
|
|
|
self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='didcustomer', null=True, to=orm['pyfreebill.Company']), |
|
36
|
|
|
keep_default=False) |
|
37
|
|
|
|
|
38
|
|
|
# Adding field 'Did.cust_plan' |
|
39
|
|
|
db.add_column('did', 'cust_plan', |
|
40
|
|
|
self.gf('django.db.models.fields.related.ForeignKey')(to=orm['did.CustomerRatesDid'], null=True, blank=True), |
|
41
|
|
|
keep_default=False) |
|
42
|
|
|
|
|
43
|
|
|
# Adding field 'Did.cust_max_channels' |
|
44
|
|
|
db.add_column('did', 'cust_max_channels', |
|
45
|
|
|
self.gf('django.db.models.fields.PositiveIntegerField')(default=1), |
|
46
|
|
|
keep_default=False) |
|
47
|
|
|
|
|
48
|
|
|
|
|
49
|
|
|
def backwards(self, orm): |
|
50
|
|
|
# Adding model 'ContractDid' |
|
51
|
|
|
db.create_table('did_contract', ( |
|
52
|
|
|
('customer', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['pyfreebill.Company'])), |
|
53
|
|
|
('description', self.gf('django.db.models.fields.TextField')(blank=True)), |
|
54
|
|
|
('date_modified', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)), |
|
55
|
|
|
('did', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['did.Did'], unique=True)), |
|
56
|
|
|
('date_added', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)), |
|
57
|
|
|
('plan', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['did.CustomerRatesDid'])), |
|
58
|
|
|
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), |
|
59
|
|
|
('max_channels', self.gf('django.db.models.fields.PositiveIntegerField')(default=1)), |
|
60
|
|
|
)) |
|
61
|
|
|
db.send_create_signal('did', ['ContractDid']) |
|
62
|
|
|
|
|
63
|
|
|
|
|
64
|
|
|
# Changing field 'RoutesDid.contract_did' |
|
65
|
|
|
db.alter_column('did_routes', 'contract_did_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['did.ContractDid'])) |
|
66
|
|
|
|
|
67
|
|
|
# User chose to not deal with backwards NULL issues for 'Did.plan' |
|
68
|
|
|
raise RuntimeError("Cannot reverse this migration. 'Did.plan' and its values cannot be restored.") |
|
69
|
|
|
|
|
70
|
|
|
# The following code is provided here to aid in writing a correct migration # Adding field 'Did.plan' |
|
71
|
|
|
db.add_column('did', 'plan', |
|
72
|
|
|
self.gf('django.db.models.fields.related.ForeignKey')(to=orm['did.ProviderRatesDid']), |
|
73
|
|
|
keep_default=False) |
|
74
|
|
|
|
|
75
|
|
|
# Adding field 'Did.max_channels' |
|
76
|
|
|
db.add_column('did', 'max_channels', |
|
77
|
|
|
self.gf('django.db.models.fields.PositiveIntegerField')(default=1), |
|
78
|
|
|
keep_default=False) |
|
79
|
|
|
|
|
80
|
|
|
# Deleting field 'Did.prov_plan' |
|
81
|
|
|
db.delete_column('did', 'prov_plan_id') |
|
82
|
|
|
|
|
83
|
|
|
# Deleting field 'Did.prov_max_channels' |
|
84
|
|
|
db.delete_column('did', 'prov_max_channels') |
|
85
|
|
|
|
|
86
|
|
|
# Deleting field 'Did.customer' |
|
87
|
|
|
db.delete_column('did', 'customer_id') |
|
88
|
|
|
|
|
89
|
|
|
# Deleting field 'Did.cust_plan' |
|
90
|
|
|
db.delete_column('did', 'cust_plan_id') |
|
91
|
|
|
|
|
92
|
|
|
# Deleting field 'Did.cust_max_channels' |
|
93
|
|
|
db.delete_column('did', 'cust_max_channels') |
|
94
|
|
|
|
|
95
|
|
|
|
|
96
|
|
|
models = { |
|
97
|
|
|
u'auth.group': { |
|
98
|
|
|
'Meta': {'object_name': 'Group'}, |
|
99
|
|
|
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
100
|
|
|
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), |
|
101
|
|
|
'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) |
|
102
|
|
|
}, |
|
103
|
|
|
u'auth.permission': { |
|
104
|
|
|
'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'}, |
|
105
|
|
|
'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
|
106
|
|
|
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}), |
|
107
|
|
|
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
108
|
|
|
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) |
|
109
|
|
|
}, |
|
110
|
|
|
u'auth.user': { |
|
111
|
|
|
'Meta': {'object_name': 'User'}, |
|
112
|
|
|
'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), |
|
113
|
|
|
'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), |
|
114
|
|
|
'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), |
|
115
|
|
|
'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), |
|
116
|
|
|
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
117
|
|
|
'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), |
|
118
|
|
|
'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
|
119
|
|
|
'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
|
120
|
|
|
'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), |
|
121
|
|
|
'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), |
|
122
|
|
|
'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), |
|
123
|
|
|
'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), |
|
124
|
|
|
'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) |
|
125
|
|
|
}, |
|
126
|
|
|
u'cities_light.city': { |
|
127
|
|
|
'Meta': {'ordering': "['name']", 'unique_together': "(('region', 'name'),)", 'object_name': 'City'}, |
|
128
|
|
|
'alternate_names': ('django.db.models.fields.TextField', [], {'default': "''", 'null': 'True', 'blank': 'True'}), |
|
129
|
|
|
'country': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['cities_light.Country']"}), |
|
130
|
|
|
'display_name': ('django.db.models.fields.CharField', [], {'max_length': '200'}), |
|
131
|
|
|
'feature_code': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '10', 'null': 'True', 'blank': 'True'}), |
|
132
|
|
|
'geoname_id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'null': 'True', 'blank': 'True'}), |
|
133
|
|
|
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
134
|
|
|
'latitude': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '8', 'decimal_places': '5', 'blank': 'True'}), |
|
135
|
|
|
'longitude': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '8', 'decimal_places': '5', 'blank': 'True'}), |
|
136
|
|
|
'name': ('django.db.models.fields.CharField', [], {'max_length': '200', 'db_index': 'True'}), |
|
137
|
|
|
'name_ascii': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '200', 'blank': 'True'}), |
|
138
|
|
|
'population': ('django.db.models.fields.BigIntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'}), |
|
139
|
|
|
'region': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['cities_light.Region']", 'null': 'True', 'blank': 'True'}), |
|
140
|
|
|
'search_names': ('cities_light.models.ToSearchTextField', [], {'default': "''", 'max_length': '4000', 'db_index': 'True', 'blank': 'True'}), |
|
141
|
|
|
'slug': ('autoslug.fields.AutoSlugField', [], {'unique_with': '()', 'max_length': '50', 'populate_from': "'name_ascii'"}) |
|
142
|
|
|
}, |
|
143
|
|
|
u'cities_light.country': { |
|
144
|
|
|
'Meta': {'ordering': "['name']", 'object_name': 'Country'}, |
|
145
|
|
|
'alternate_names': ('django.db.models.fields.TextField', [], {'default': "''", 'null': 'True', 'blank': 'True'}), |
|
146
|
|
|
'code2': ('django.db.models.fields.CharField', [], {'max_length': '2', 'unique': 'True', 'null': 'True', 'blank': 'True'}), |
|
147
|
|
|
'code3': ('django.db.models.fields.CharField', [], {'max_length': '3', 'unique': 'True', 'null': 'True', 'blank': 'True'}), |
|
148
|
|
|
'continent': ('django.db.models.fields.CharField', [], {'max_length': '2', 'db_index': 'True'}), |
|
149
|
|
|
'geoname_id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'null': 'True', 'blank': 'True'}), |
|
150
|
|
|
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
151
|
|
|
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}), |
|
152
|
|
|
'name_ascii': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '200', 'blank': 'True'}), |
|
153
|
|
|
'slug': ('autoslug.fields.AutoSlugField', [], {'unique_with': '()', 'max_length': '50', 'populate_from': "'name_ascii'"}), |
|
154
|
|
|
'tld': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '5', 'blank': 'True'}) |
|
155
|
|
|
}, |
|
156
|
|
|
u'cities_light.region': { |
|
157
|
|
|
'Meta': {'ordering': "['name']", 'unique_together': "(('country', 'name'),)", 'object_name': 'Region'}, |
|
158
|
|
|
'alternate_names': ('django.db.models.fields.TextField', [], {'default': "''", 'null': 'True', 'blank': 'True'}), |
|
159
|
|
|
'country': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['cities_light.Country']"}), |
|
160
|
|
|
'display_name': ('django.db.models.fields.CharField', [], {'max_length': '200'}), |
|
161
|
|
|
'geoname_code': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '50', 'null': 'True', 'blank': 'True'}), |
|
162
|
|
|
'geoname_id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'null': 'True', 'blank': 'True'}), |
|
163
|
|
|
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
164
|
|
|
'name': ('django.db.models.fields.CharField', [], {'max_length': '200', 'db_index': 'True'}), |
|
165
|
|
|
'name_ascii': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '200', 'blank': 'True'}), |
|
166
|
|
|
'slug': ('autoslug.fields.AutoSlugField', [], {'unique_with': '()', 'max_length': '50', 'populate_from': "'name_ascii'"}) |
|
167
|
|
|
}, |
|
168
|
|
|
u'comments.comment': { |
|
169
|
|
|
'Meta': {'ordering': "('submit_date',)", 'object_name': 'Comment', 'db_table': "'django_comments'"}, |
|
170
|
|
|
'comment': ('django.db.models.fields.TextField', [], {'max_length': '3000'}), |
|
171
|
|
|
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'content_type_set_for_comment'", 'to': u"orm['contenttypes.ContentType']"}), |
|
172
|
|
|
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
173
|
|
|
'ip_address': ('django.db.models.fields.IPAddressField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}), |
|
174
|
|
|
'is_public': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), |
|
175
|
|
|
'is_removed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
|
176
|
|
|
'object_pk': ('django.db.models.fields.TextField', [], {}), |
|
177
|
|
|
'site': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['sites.Site']"}), |
|
178
|
|
|
'submit_date': ('django.db.models.fields.DateTimeField', [], {'default': 'None'}), |
|
179
|
|
|
'user': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'comment_comments'", 'null': 'True', 'to': u"orm['auth.User']"}), |
|
180
|
|
|
'user_email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), |
|
181
|
|
|
'user_name': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}), |
|
182
|
|
|
'user_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) |
|
183
|
|
|
}, |
|
184
|
|
|
u'contenttypes.contenttype': { |
|
185
|
|
|
'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, |
|
186
|
|
|
'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
|
187
|
|
|
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
188
|
|
|
'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
|
189
|
|
|
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) |
|
190
|
|
|
}, |
|
191
|
|
|
'did.customerratesdid': { |
|
192
|
|
|
'Meta': {'ordering': "('name',)", 'object_name': 'CustomerRatesDid', 'db_table': "'customer_rates_did'"}, |
|
193
|
|
|
'block_min_duration': ('django.db.models.fields.IntegerField', [], {'default': '1'}), |
|
194
|
|
|
'date_added': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
|
195
|
|
|
'date_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
|
196
|
|
|
'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), |
|
197
|
|
|
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
198
|
|
|
'interval_duration': ('django.db.models.fields.IntegerField', [], {'default': '1'}), |
|
199
|
|
|
'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}), |
|
200
|
|
|
'rate': ('django.db.models.fields.DecimalField', [], {'max_digits': '11', 'decimal_places': '5'}) |
|
201
|
|
|
}, |
|
202
|
|
|
'did.did': { |
|
203
|
|
|
'Meta': {'ordering': "('number',)", 'object_name': 'Did', 'db_table': "'did'"}, |
|
204
|
|
|
'city': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['cities_light.City']", 'null': 'True', 'blank': 'True'}), |
|
205
|
|
|
'cust_max_channels': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), |
|
206
|
|
|
'cust_plan': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['did.CustomerRatesDid']", 'null': 'True', 'blank': 'True'}), |
|
207
|
|
|
'customer': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'didcustomer'", 'null': 'True', 'to': u"orm['pyfreebill.Company']"}), |
|
208
|
|
|
'date_added': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
|
209
|
|
|
'date_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
|
210
|
|
|
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}), |
|
211
|
|
|
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
212
|
|
|
'number': ('django.db.models.fields.CharField', [], {'max_length': '30', 'db_index': 'True'}), |
|
213
|
|
|
'prov_max_channels': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), |
|
214
|
|
|
'prov_plan': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['did.ProviderRatesDid']"}), |
|
215
|
|
|
'provider': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'didprovider'", 'to': u"orm['pyfreebill.Company']"}) |
|
216
|
|
|
}, |
|
217
|
|
|
'did.providerratesdid': { |
|
218
|
|
|
'Meta': {'ordering': "('provider', 'name')", 'unique_together': "(('name', 'provider'),)", 'object_name': 'ProviderRatesDid', 'db_table': "'provider_rates_did'"}, |
|
219
|
|
|
'block_min_duration': ('django.db.models.fields.IntegerField', [], {'default': '1'}), |
|
220
|
|
|
'date_added': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
|
221
|
|
|
'date_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
|
222
|
|
|
'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), |
|
223
|
|
|
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
224
|
|
|
'interval_duration': ('django.db.models.fields.IntegerField', [], {'default': '1'}), |
|
225
|
|
|
'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}), |
|
226
|
|
|
'provider': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['pyfreebill.Company']"}), |
|
227
|
|
|
'rate': ('django.db.models.fields.DecimalField', [], {'max_digits': '11', 'decimal_places': '5'}) |
|
228
|
|
|
}, |
|
229
|
|
|
'did.routesdid': { |
|
230
|
|
|
'Meta': {'ordering': "('contract_did',)", 'unique_together': "(('contract_did', 'order'),)", 'object_name': 'RoutesDid', 'db_table': "'did_routes'"}, |
|
231
|
|
|
'contract_did': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['did.Did']"}), |
|
232
|
|
|
'date_added': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
|
233
|
|
|
'date_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
|
234
|
|
|
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}), |
|
235
|
|
|
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
236
|
|
|
'number': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '30', 'null': 'True', 'blank': 'True'}), |
|
237
|
|
|
'order': ('django.db.models.fields.IntegerField', [], {'default': '0'}), |
|
238
|
|
|
'trunk': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['pyfreebill.CustomerDirectory']", 'null': 'True', 'blank': 'True'}), |
|
239
|
|
|
'type': ('django.db.models.fields.CharField', [], {'default': "'m'", 'max_length': '2'}) |
|
240
|
|
|
}, |
|
241
|
|
|
u'pyfreebill.company': { |
|
242
|
|
|
'Meta': {'ordering': "('name',)", 'object_name': 'Company', 'db_table': "'company'"}, |
|
243
|
|
|
'about': ('django.db.models.fields.CharField', [], {'max_length': '250', 'null': 'True', 'blank': 'True'}), |
|
244
|
|
|
'account_blocked_alert_sent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
|
245
|
|
|
'account_number': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}), |
|
246
|
|
|
'billing_cycle': ('django.db.models.fields.CharField', [], {'default': "'m'", 'max_length': '10'}), |
|
247
|
|
|
'calls_per_second': ('django.db.models.fields.PositiveIntegerField', [], {'default': '10'}), |
|
248
|
|
|
'credit_limit': ('django.db.models.fields.DecimalField', [], {'default': '0', 'max_digits': '12', 'decimal_places': '4'}), |
|
249
|
|
|
'customer_balance': ('django.db.models.fields.DecimalField', [], {'default': '0', 'max_digits': '12', 'decimal_places': '6'}), |
|
250
|
|
|
'customer_enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), |
|
251
|
|
|
'date_added': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
|
252
|
|
|
'date_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
|
253
|
|
|
'email_alert': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}), |
|
254
|
|
|
'iban': ('django_iban.fields.IBANField', [], {'max_length': '34', 'null': 'True', 'blank': 'True'}), |
|
255
|
|
|
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
256
|
|
|
'low_credit_alert': ('django.db.models.fields.DecimalField', [], {'default': "'10'", 'max_digits': '12', 'decimal_places': '4'}), |
|
257
|
|
|
'low_credit_alert_sent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
|
258
|
|
|
'max_calls': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), |
|
259
|
|
|
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}), |
|
260
|
|
|
'nickname': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True', 'blank': 'True'}), |
|
261
|
|
|
'prepaid': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), |
|
262
|
|
|
'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50'}), |
|
263
|
|
|
'supplier_balance': ('django.db.models.fields.DecimalField', [], {'default': '0', 'max_digits': '12', 'decimal_places': '6'}), |
|
264
|
|
|
'supplier_enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), |
|
265
|
|
|
'swift_bic': ('django_iban.fields.SWIFTBICField', [], {'max_length': '11', 'null': 'True', 'blank': 'True'}), |
|
266
|
|
|
'vat': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
|
267
|
|
|
'vat_number': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}) |
|
268
|
|
|
}, |
|
269
|
|
|
u'pyfreebill.customerdirectory': { |
|
270
|
|
|
'Meta': {'ordering': "('company', 'name')", 'object_name': 'CustomerDirectory', 'db_table': "'customer_directory'"}, |
|
271
|
|
|
'calls_per_second': ('django.db.models.fields.PositiveIntegerField', [], {'default': '10'}), |
|
272
|
|
|
'cli_debug': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
|
273
|
|
|
'codecs': ('django.db.models.fields.CharField', [], {'default': "'ALL'", 'max_length': '100'}), |
|
274
|
|
|
'company': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['pyfreebill.Company']"}), |
|
275
|
|
|
'date_added': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
|
276
|
|
|
'date_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
|
277
|
|
|
'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}), |
|
278
|
|
|
'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}), |
|
279
|
|
|
'fake_ring': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
|
280
|
|
|
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
281
|
|
|
'ignore_early_media': ('django.db.models.fields.CharField', [], {'default': "'false'", 'max_length': '20'}), |
|
282
|
|
|
'log_auth_failures': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
|
283
|
|
|
'max_calls': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), |
|
284
|
|
|
'multiple_registrations': ('django.db.models.fields.CharField', [], {'default': "'false'", 'max_length': '100'}), |
|
285
|
|
|
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '50'}), |
|
286
|
|
|
'outbound_caller_id_name': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}), |
|
287
|
|
|
'outbound_caller_id_number': ('django.db.models.fields.CharField', [], {'max_length': '80', 'blank': 'True'}), |
|
288
|
|
|
'password': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), |
|
289
|
|
|
'registration': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), |
|
290
|
|
|
'rtp_ip': ('django.db.models.fields.CharField', [], {'default': "'auto'", 'max_length': '100'}), |
|
291
|
|
|
'sip_ip': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}), |
|
292
|
|
|
'sip_port': ('django.db.models.fields.PositiveIntegerField', [], {'default': '5060'}), |
|
293
|
|
|
'vmd': ('django.db.models.fields.BooleanField', [], {'default': 'False'}) |
|
294
|
|
|
}, |
|
295
|
|
|
u'pyfreebill.emailaddress': { |
|
296
|
|
|
'Meta': {'object_name': 'EmailAddress', 'db_table': "'contacts_email_addresses'"}, |
|
297
|
|
|
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}), |
|
298
|
|
|
'date_added': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
|
299
|
|
|
'date_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
|
300
|
|
|
'email_address': ('django.db.models.fields.EmailField', [], {'max_length': '75'}), |
|
301
|
|
|
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
302
|
|
|
'location': ('django.db.models.fields.CharField', [], {'default': "'work'", 'max_length': '6'}), |
|
303
|
|
|
'object_id': ('django.db.models.fields.IntegerField', [], {'db_index': 'True'}) |
|
304
|
|
|
}, |
|
305
|
|
|
u'pyfreebill.phonenumber': { |
|
306
|
|
|
'Meta': {'object_name': 'PhoneNumber', 'db_table': "'contacts_phone_numbers'"}, |
|
307
|
|
|
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}), |
|
308
|
|
|
'date_added': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
|
309
|
|
|
'date_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
|
310
|
|
|
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
311
|
|
|
'location': ('django.db.models.fields.CharField', [], {'default': "'work'", 'max_length': '6'}), |
|
312
|
|
|
'object_id': ('django.db.models.fields.IntegerField', [], {'db_index': 'True'}), |
|
313
|
|
|
'phone_number': ('django.db.models.fields.CharField', [], {'max_length': '50'}) |
|
314
|
|
|
}, |
|
315
|
|
|
u'pyfreebill.streetaddress': { |
|
316
|
|
|
'Meta': {'object_name': 'StreetAddress', 'db_table': "'contacts_street_addresses'"}, |
|
317
|
|
|
'city': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), |
|
318
|
|
|
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}), |
|
319
|
|
|
'country': ('django_countries.fields.CountryField', [], {'max_length': '2'}), |
|
320
|
|
|
'date_added': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
|
321
|
|
|
'date_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
|
322
|
|
|
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
323
|
|
|
'location': ('django.db.models.fields.CharField', [], {'default': "'work'", 'max_length': '6'}), |
|
324
|
|
|
'object_id': ('django.db.models.fields.IntegerField', [], {'db_index': 'True'}), |
|
325
|
|
|
'postal_code': ('django.db.models.fields.CharField', [], {'max_length': '10', 'blank': 'True'}), |
|
326
|
|
|
'province': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), |
|
327
|
|
|
'street': ('django.db.models.fields.TextField', [], {'blank': 'True'}) |
|
328
|
|
|
}, |
|
329
|
|
|
u'pyfreebill.website': { |
|
330
|
|
|
'Meta': {'object_name': 'WebSite', 'db_table': "'contacts_web_sites'"}, |
|
331
|
|
|
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}), |
|
332
|
|
|
'date_added': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), |
|
333
|
|
|
'date_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}), |
|
334
|
|
|
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
335
|
|
|
'location': ('django.db.models.fields.CharField', [], {'default': "'work'", 'max_length': '6'}), |
|
336
|
|
|
'object_id': ('django.db.models.fields.IntegerField', [], {'db_index': 'True'}), |
|
337
|
|
|
'url': ('django.db.models.fields.URLField', [], {'max_length': '200'}) |
|
338
|
|
|
}, |
|
339
|
|
|
u'sites.site': { |
|
340
|
|
|
'Meta': {'ordering': "('domain',)", 'object_name': 'Site', 'db_table': "'django_site'"}, |
|
341
|
|
|
'domain': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
|
342
|
|
|
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
|
343
|
|
|
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) |
|
344
|
|
|
} |
|
345
|
|
|
} |
|
346
|
|
|
|
|
347
|
|
|
complete_apps = ['did'] |