0001_initial.py 1.5 KB

12345678910111213141516171819202122232425262728293031
  1. # -*- coding: utf-8 -*-
  2. from __future__ import unicode_literals
  3. from django.db import models, migrations
  4. import django.core.validators
  5. class Migration(migrations.Migration):
  6. dependencies = [
  7. ('configuration', '0003_configuration_comment'),
  8. ]
  9. operations = [
  10. migrations.CreateModel(
  11. name='FDNWhiteLabel',
  12. fields=[
  13. ('configuration_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='configuration.Configuration')),
  14. ('phone_number', models.CharField(help_text='Phone number associated to the DSL line', max_length=20, verbose_name='phone number')),
  15. ('address', models.TextField(null=True, verbose_name='adresse postale', blank=True)),
  16. ('postal_code', models.CharField(blank=True, max_length=5, null=True, verbose_name='code postal', validators=[django.core.validators.RegexValidator(regex='^\\d{5}$', message='Code postal non valide.')])),
  17. ('city', models.CharField(max_length=200, null=True, verbose_name='commune', blank=True)),
  18. ('ppp_login', models.CharField(max_length=200, null=True, verbose_name='identifiant PPP', blank=True)),
  19. ('ppp_password', models.CharField(max_length=200, null=True, verbose_name='mot de passe PPP', blank=True)),
  20. ],
  21. options={
  22. 'verbose_name': 'marque blanche FDN',
  23. },
  24. bases=('configuration.configuration',),
  25. ),
  26. ]