0001_initial.py 1.3 KB

123456789101112131415161718192021222324252627282930
  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. class Migration(migrations.Migration):
  7. dependencies = [
  8. ('configuration', '0004_auto_20161015_1837'),
  9. ]
  10. operations = [
  11. migrations.CreateModel(
  12. name='HousingConfiguration',
  13. fields=[
  14. ('configuration_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='configuration.Configuration')),
  15. ('activated', models.BooleanField(default=False, verbose_name='activ\xe9')),
  16. ('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 Housing', null=True, verbose_name='IPv4')),
  17. ('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 Housing', null=True, verbose_name='IPv6')),
  18. ('vlan', models.IntegerField(null=True, verbose_name='vlan id')),
  19. ],
  20. options={
  21. 'verbose_name': 'Housing',
  22. },
  23. bases=('configuration.configuration',),
  24. ),
  25. ]