initial version
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
# Generated by Django 4.2.17 on 2024-12-14 18:37
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Categories',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('title', models.CharField(blank=True, max_length=100)),
|
||||
('slug', models.SlugField(blank=True, null=True, unique=True)),
|
||||
('picture', models.ImageField(blank=True, null=True, upload_to='main/images')),
|
||||
('citation', models.TextField(blank=True)),
|
||||
('date_created', models.DateTimeField(auto_now_add=True, null=True)),
|
||||
('parentcategory', models.ManyToManyField(blank=True, related_name='children', to='main.categories')),
|
||||
],
|
||||
options={
|
||||
'verbose_name_plural': 'Categories',
|
||||
'ordering': ['id'],
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user