0001_squashed_0002_remove_vpnconfiguration_comment.py 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # -*- coding: utf-8 -*-
  2. from __future__ import unicode_literals
  3. from django.db import migrations, models
  4. import netfields.fields
  5. import coin.validation
  6. import coin.mixins
  7. class Migration(migrations.Migration):
  8. replaces = [('vpn', '0001_initial'), ('vpn', '0002_remove_vpnconfiguration_comment')]
  9. dependencies = [
  10. ('configuration', '0001_initial'),
  11. ]
  12. operations = [
  13. migrations.CreateModel(
  14. name='VPNConfiguration',
  15. fields=[
  16. ('configuration_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='configuration.Configuration')),
  17. ('activated', models.BooleanField(default=False, verbose_name='activ\xe9')),
  18. ('login', models.CharField(help_text='leave empty for automatic generation', unique=True, max_length=50, verbose_name='identifiant', blank=True)),
  19. ('password', models.CharField(max_length=256, null=True, verbose_name='mot de passe', blank=True)),
  20. ('ipv4_endpoint', netfields.fields.InetAddressField(validators=[coin.validation.validate_v4], max_length=39, blank=True, help_text='Adresse IPv4 utilis\xe9e par d\xe9faut sur le VPN', null=True, verbose_name='IPv4')),
  21. ('ipv6_endpoint', netfields.fields.InetAddressField(validators=[coin.validation.validate_v6], max_length=39, blank=True, help_text='Adresse IPv6 utilis\xe9e par d\xe9faut sur le VPN', null=True, verbose_name='IPv6')),
  22. ],
  23. options={
  24. 'verbose_name': 'VPN',
  25. },
  26. bases=(coin.mixins.CoinLdapSyncMixin, 'configuration.configuration'),
  27. ),
  28. migrations.CreateModel(
  29. name='LdapVPNConfig',
  30. fields=[
  31. ],
  32. options={
  33. 'managed': False,
  34. },
  35. ),
  36. ]