Browse Source
Set ip_address in Device to null=true, because ONU device may be without
Set ip_address in Device to null=true, because ONU device may be without
ip_address.devel
11 changed files with 84 additions and 43 deletions
-
6devapp/base_intr.py
-
23devapp/dev_types.py
-
3devapp/locale/ru/LC_MESSAGES/django.po
-
26devapp/migrations/0002_auto_20180409_1318.py
-
19devapp/models.py
-
4devapp/templates/devapp/custom_dev_page/olt.html
-
4devapp/templates/devapp/custom_dev_page/onu.html
-
2devapp/templates/devapp/custom_dev_page/ports.html
-
2devapp/templates/devapp/devices_null_group.html
-
2devapp/templates/devapp/manage_ports/list.html
-
18devapp/views.py
@ -0,0 +1,26 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.11 on 2018-04-09 13:18 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations |
|||
import mydefs |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
dependencies = [ |
|||
('devapp', '0001_initial'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterModelOptions( |
|||
name='device', |
|||
options={'ordering': ['id'], 'permissions': (('can_view_device', 'Can view device'),), |
|||
'verbose_name': 'Device', 'verbose_name_plural': 'Devices'}, |
|||
), |
|||
migrations.AlterField( |
|||
model_name='device', |
|||
name='ip_address', |
|||
field=mydefs.MyGenericIPAddressField(blank=True, max_length=8, null=True, protocol='ipv4', |
|||
verbose_name='Ip address'), |
|||
), |
|||
] |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue