30 lines
979 B
Python
30 lines
979 B
Python
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.10 on 2016-10-05 20:53
|
|
from __future__ import unicode_literals
|
|
|
|
import autoslug.fields
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Room',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.TextField(blank=True, default='')),
|
|
('capacity', models.IntegerField(default=0)),
|
|
('site', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='sites.Site')),
|
|
('slug', autoslug.fields.AutoSlugField(editable=False, populate_from='name')),
|
|
],
|
|
),
|
|
migrations.AlterUniqueTogether(
|
|
name='room',
|
|
unique_together=set([('site', 'name')]),
|
|
),
|
|
]
|