vpnmanager/manager/migrations/0036_auto_20190119_0829.py

36 lines
1.6 KiB
Python
Raw Normal View History

2019-01-19 09:51:17 +00:00
# Generated by Django 2.1.5 on 2019-01-19 08:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('manager', '0035_auto_20190118_1219'),
]
operations = [
migrations.CreateModel(
name='UserLog',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('objid', models.CharField(max_length=64, verbose_name='Target User Name')),
('user', models.CharField(max_length=128, null=True, verbose_name='Source User Name')),
('date', models.DateTimeField(auto_now_add=True, verbose_name='Action Date')),
('action', models.IntegerField(choices=[(0, 'ADD'), (1, 'REMOVE'), (2, 'NAME'), (3, 'MAIL'), (4, 'STAFF'), (5, 'SUPERUSER'), (6, 'ORGA')], 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'),
),
migrations.AlterField(
model_name='devicelog',
name='action',
field=models.IntegerField(choices=[(0, 'ADD'), (1, 'REMOVE'), (2, 'NAME'), (3, 'NET'), (4, 'REBOOT'), (5, 'UPDATE'), (6, 'STATUS'), (7, 'INTERNALIP'), (8, 'WIFI'), (9, 'ORGA')], verbose_name='Action'),
),
]