update requirements
[redakcja.git] / apps / dvcs / migrations / 0001_initial.py
1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
3
4 from django.db import models, migrations
5 import datetime
6 from django.conf import settings
7
8
9 class Migration(migrations.Migration):
10
11     dependencies = [
12         migrations.swappable_dependency(settings.AUTH_USER_MODEL),
13     ]
14
15     operations = [
16         migrations.CreateModel(
17             name='Ref',
18             fields=[
19                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
20             ],
21         ),
22         migrations.CreateModel(
23             name='Revision',
24             fields=[
25                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
26                 ('author_name', models.CharField(help_text='Used if author is not set.', max_length=128, null=True, verbose_name='author name', blank=True)),
27                 ('author_email', models.CharField(help_text='Used if author is not set.', max_length=128, null=True, verbose_name='author email', blank=True)),
28                 ('description', models.TextField(default='', verbose_name='description', blank=True)),
29                 ('created_at', models.DateTimeField(default=datetime.datetime.now, editable=False, db_index=True)),
30                 ('author', models.ForeignKey(verbose_name='author', blank=True, to=settings.AUTH_USER_MODEL, null=True)),
31                 ('merge_parent', models.ForeignKey(related_name='merge_children', default=None, blank=True, to='dvcs.Revision', null=True, verbose_name='merge parent')),
32                 ('parent', models.ForeignKey(related_name='children', default=None, blank=True, to='dvcs.Revision', null=True, verbose_name='parent')),
33             ],
34             options={
35                 'ordering': ('created_at',),
36                 'verbose_name': 'revision',
37                 'verbose_name_plural': 'revisions',
38             },
39         ),
40         migrations.AddField(
41             model_name='ref',
42             name='revision',
43             field=models.ForeignKey(default=None, editable=False, to='dvcs.Revision', blank=True, help_text="The document's revision.", null=True, verbose_name='revision'),
44         ),
45     ]