combo/combo/apps/search/migrations/0006_indexedcell.py

36 lines
1.7 KiB
Python

# -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2020-01-20 15:30
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('data', '0043_delete_externallinksearchitem'),
('auth', '0008_alter_user_username_max_length'),
('contenttypes', '0002_remove_content_type_name'),
('search', '0005_searchcell_autofocus'),
]
operations = [
migrations.CreateModel(
name='IndexedCell',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('cell_pk', models.PositiveIntegerField(null=True)),
('url', models.CharField(blank=True, max_length=500, null=True)),
('title', models.CharField(blank=True, max_length=500, null=True)),
('indexed_text', models.TextField(blank=True, null=True)),
('public_access', models.BooleanField(default=False)),
('last_update_timestamp', models.DateTimeField(auto_now=True)),
('cell_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
('excluded_groups', models.ManyToManyField(blank=True, related_name='_indexedcell_excluded_groups_+', to='auth.Group')),
('page', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='data.Page')),
('restricted_groups', models.ManyToManyField(blank=True, related_name='_indexedcell_restricted_groups_+', to='auth.Group')),
],
),
]