add tags to document and organization
[redakcja.git] / apps / catalogue / migrations / 0001_initial.py
1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
3
4 from django.db import models, migrations
5 import django.contrib.auth.models
6 from django.conf import settings
7
8
9 class Migration(migrations.Migration):
10
11     dependencies = [
12         ('auth', '0006_require_contenttypes_0002'),
13         migrations.swappable_dependency(settings.AUTH_USER_MODEL),
14         ('dvcs', '__first__'),
15         ('organizations', '__first__'),
16     ]
17
18     operations = [
19         migrations.CreateModel(
20             name='Document',
21             fields=[
22                 ('ref_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='dvcs.Ref')),
23                 ('stage', models.CharField(default='', max_length=128, verbose_name='stage', blank=True)),
24                 ('owner_organization', models.ForeignKey(to='organizations.Organization', null=True)),
25             ],
26             options={
27                 'verbose_name': 'document',
28                 'verbose_name_plural': 'documents',
29             },
30             bases=('dvcs.ref',),
31         ),
32         migrations.CreateModel(
33             name='Template',
34             fields=[
35                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
36                 ('name', models.CharField(max_length=255)),
37                 ('content', models.TextField()),
38                 ('is_main', models.BooleanField()),
39                 ('is_partial', models.BooleanField()),
40             ],
41         ),
42         migrations.CreateModel(
43             name='User',
44             fields=[
45             ],
46             options={
47                 'proxy': True,
48             },
49             bases=('auth.user',),
50             managers=[
51                 (b'objects', django.contrib.auth.models.UserManager()),
52             ],
53         ),
54         migrations.AddField(
55             model_name='document',
56             name='owner_user',
57             field=models.ForeignKey(to=settings.AUTH_USER_MODEL, null=True),
58         ),
59     ]