2015-03-03 09:34:09 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from django.db import models, migrations
|
2015-03-25 09:36:37 +00:00
|
|
|
from django.conf import settings
|
2015-03-03 09:34:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
2015-03-25 09:36:37 +00:00
|
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
2015-03-03 09:34:09 +00:00
|
|
|
('instances', '0001_initial'),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Logs',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
|
|
|
('message', models.CharField(max_length=255)),
|
2015-03-25 09:36:37 +00:00
|
|
|
('date', models.DateTimeField(auto_now=True)),
|
2015-03-03 09:34:09 +00:00
|
|
|
('instance', models.ForeignKey(to='instances.Instance')),
|
2015-03-25 09:36:37 +00:00
|
|
|
('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
|
2015-03-03 09:34:09 +00:00
|
|
|
],
|
|
|
|
options={
|
|
|
|
},
|
|
|
|
bases=(models.Model,),
|
|
|
|
),
|
|
|
|
]
|