File: 0004_add_object_pk_is_removed_index.py

package info (click to toggle)
python-django-contrib-comments 2.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,780 kB
  • sloc: python: 2,392; makefile: 142; xml: 15; sh: 6
file content (25 lines) | stat: -rw-r--r-- 804 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('django_comments', '0003_add_submit_date_index'),
    ]

    operations = [
        migrations.AlterField(
            model_name='comment',
            name='is_removed',
            field=models.BooleanField(
                db_index=True, default=False,
                help_text='Check this box if the comment is inappropriate. '
                          'A "This comment has been removed" message will be displayed instead.',
                verbose_name='is removed'),
        ),
        migrations.AlterField(
            model_name='comment',
            name='object_pk',
            field=models.CharField(max_length=64, db_index=True, verbose_name='object ID'),
        ),
    ]