vpnmanager/manager/migrations/0033_auto_20190118_0846.py

31 lines
1.3 KiB
Python
Raw Normal View History

2019-01-18 12:50:53 +00:00
# Generated by Django 2.1.5 on 2019-01-18 08:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('manager', '0032_auto_20190117_1039'),
]
operations = [
migrations.CreateModel(
name='DeviceLog',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('device', models.CharField(max_length=64, verbose_name='Device ID')),
('user', models.CharField(max_length=128, null=True, verbose_name='User Name')),
('date', models.DateTimeField(auto_now_add=True, verbose_name='Action Date')),
('action', models.IntegerField(choices=[(0, 'ADD'), (1, 'REMOVE'), (2, 'NAME'), (3, 'NET'), (4, 'REBOOT'), (5, 'UPDATE'), (6, 'STATUS'), (7, 'INTERNALIP')], verbose_name='Action')),
('oldvalue', models.CharField(blank=True, max_length=256, null=True, verbose_name='Old Value')),
('newvalue', models.CharField(blank=True, max_length=256, null=True, verbose_name='New Value')),
],
),
migrations.AlterField(
model_name='device',
name='wifi',
field=models.ManyToManyField(blank=True, to='manager.Wifi'),
),
]