models delte and trash and cascade issues fixes
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
# Generated by Django 5.2.10 on 2026-01-12 16:50
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('igny8_core_auth', '0021_accounttrash_sectortrash_sitetrash'),
|
||||
('planner', '0009_clusterstrash_contentideastrash_keywordstrash'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='keywords',
|
||||
name='seed_keyword',
|
||||
field=models.ForeignKey(help_text='Reference to the global seed keyword', on_delete=django.db.models.deletion.CASCADE, related_name='site_keywords', to='igny8_core_auth.seedkeyword'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,54 @@
|
||||
# Generated by Django 5.2.10 on 2026-01-12 16:50
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('writer', '0017_contenttrash_imagestrash_taskstrash'),
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='ContentTaxonomyTrash',
|
||||
fields=[
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Taxonomy (Trash)',
|
||||
'verbose_name_plural': 'Taxonomies (Trash)',
|
||||
'proxy': True,
|
||||
'indexes': [],
|
||||
'constraints': [],
|
||||
},
|
||||
bases=('writer.contenttaxonomy',),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='contenttaxonomy',
|
||||
name='delete_reason',
|
||||
field=models.CharField(blank=True, max_length=255, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='contenttaxonomy',
|
||||
name='deleted_at',
|
||||
field=models.DateTimeField(blank=True, db_index=True, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='contenttaxonomy',
|
||||
name='deleted_by',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='contenttaxonomy',
|
||||
name='is_deleted',
|
||||
field=models.BooleanField(db_index=True, default=False),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='contenttaxonomy',
|
||||
name='restore_until',
|
||||
field=models.DateTimeField(blank=True, db_index=True, null=True),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user