34 lines
1.6 KiB
Python
34 lines
1.6 KiB
Python
# Generated by Django 5.2.19 on 2026-11-26 11:24
|
|
|
|
import django.core.validators
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('catalog', '0028_default_managed_pages'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='MapLocation',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('title', models.CharField(max_length=80)),
|
|
('key', models.SlugField(unique=True)),
|
|
('path', models.CharField(blank=True, help_text='Optional override, e.g. /chapters/9/. Leave blank to follow the selected page.', max_length=240)),
|
|
('fallback_path', models.CharField(blank=True, editable=False, max_length=240)),
|
|
('x', models.DecimalField(decimal_places=5, max_digits=8, validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(100)])),
|
|
('y', models.DecimalField(decimal_places=5, max_digits=8, validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(100)])),
|
|
('visible', models.BooleanField(default=True)),
|
|
('position', models.PositiveIntegerField(default=0)),
|
|
('page', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='catalog.managedpage')),
|
|
],
|
|
options={
|
|
'ordering': ['position', 'pk'],
|
|
},
|
|
),
|
|
]
|