bgneal@1028: # -*- coding: utf-8 -*- bgneal@1028: from __future__ import unicode_literals bgneal@1028: bgneal@1028: from django.db import migrations, models bgneal@1028: from django.conf import settings bgneal@1028: bgneal@1028: bgneal@1028: class Migration(migrations.Migration): bgneal@1028: bgneal@1028: dependencies = [ bgneal@1028: ('contenttypes', '0002_remove_content_type_name'), bgneal@1028: migrations.swappable_dependency(settings.AUTH_USER_MODEL), bgneal@1028: ] bgneal@1028: bgneal@1028: operations = [ bgneal@1028: migrations.CreateModel( bgneal@1028: name='Comment', bgneal@1028: fields=[ bgneal@1028: ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), bgneal@1028: ('object_id', models.PositiveIntegerField(db_index=True)), bgneal@1028: ('comment', models.TextField(max_length=3000)), bgneal@1028: ('html', models.TextField(blank=True)), bgneal@1028: ('creation_date', models.DateTimeField()), bgneal@1028: ('ip_address', models.IPAddressField(verbose_name=b'IP Address')), bgneal@1028: ('is_public', models.BooleanField(default=True, help_text=b'Uncheck this field to make the comment invisible.')), bgneal@1028: ('is_removed', models.BooleanField(default=False, help_text=b'Check this field to replace the comment with a "This comment has been removed" message')), bgneal@1028: ('content_type', models.ForeignKey(to='contenttypes.ContentType')), bgneal@1028: ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)), bgneal@1028: ], bgneal@1028: options={ bgneal@1028: 'ordering': ('creation_date',), bgneal@1028: }, bgneal@1028: ), bgneal@1028: migrations.CreateModel( bgneal@1028: name='CommentFlag', bgneal@1028: fields=[ bgneal@1028: ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), bgneal@1028: ('flag_date', models.DateTimeField(auto_now_add=True)), bgneal@1028: ('comment', models.ForeignKey(to='comments.Comment')), bgneal@1028: ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)), bgneal@1028: ], bgneal@1028: options={ bgneal@1028: 'ordering': ('flag_date',), bgneal@1028: }, bgneal@1028: ), bgneal@1028: ]