You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.8 KiB
57 lines
1.8 KiB
# Generated by Django 5.2.9 on 2025-12-13 11:39
|
|
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
("hadis", "0032_remove_hadis_a_hadis_description"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="HadisCorrection",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.BigAutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("title", models.CharField(max_length=255, verbose_name="title")),
|
|
(
|
|
"description",
|
|
models.TextField(blank=True, null=True, verbose_name="description"),
|
|
),
|
|
(
|
|
"translation",
|
|
models.JSONField(default=list, verbose_name="translation"),
|
|
),
|
|
(
|
|
"created_at",
|
|
models.DateTimeField(auto_now_add=True, verbose_name="created at"),
|
|
),
|
|
(
|
|
"updated_at",
|
|
models.DateTimeField(auto_now=True, verbose_name="updated at"),
|
|
),
|
|
(
|
|
"hadis",
|
|
models.ForeignKey(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
to="hadis.hadis",
|
|
verbose_name="hadis correction",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"verbose_name": "Hadis Correction",
|
|
"verbose_name_plural": "Hadis Corrections",
|
|
"ordering": ("-created_at",),
|
|
},
|
|
),
|
|
]
|