You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.9 KiB
Python
43 lines
1.9 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.9.13 on 2018-10-20 13:48
|
|
from __future__ import unicode_literals
|
|
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
import django.utils.timezone
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
('contenttypes', '0002_remove_content_type_name'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Comment',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('path', models.CharField(blank=True, default='', max_length=255)),
|
|
('object_pk', models.TextField(verbose_name='object ID')),
|
|
('comment', models.TextField(max_length=3000)),
|
|
('comment_xhtml', models.TextField(editable=False)),
|
|
('added', models.DateTimeField(default=django.utils.timezone.now)),
|
|
('is_visible', models.BooleanField(default=True)),
|
|
('is_scrambled', models.BooleanField(default=False)),
|
|
('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='content_type_set_for_comment', to='contenttypes.ContentType', verbose_name='content type')),
|
|
('part_of', models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='has_comment_children', to='comments.Comment')),
|
|
('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='comment_comments', to=settings.AUTH_USER_MODEL)),
|
|
],
|
|
options={
|
|
'get_latest_by': 'added',
|
|
'db_table': 'nano_comments_comment',
|
|
'ordering': ('added',),
|
|
},
|
|
),
|
|
]
|