Add configurable per-gallery public access
This commit is contained in:
parent
72e9344102
commit
1cdd1dce26
10 changed files with 119 additions and 45 deletions
|
|
@ -0,0 +1,22 @@
|
|||
# Generated by Django 5.2.13 on 2026-04-20 19:54
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('photologue', '0008_regen_thumbnails'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='photo',
|
||||
options={'get_latest_by': 'date_added', 'ordering': ['title'], 'verbose_name': 'photo', 'verbose_name_plural': 'photos'},
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='gallery',
|
||||
name='is_public',
|
||||
field=models.BooleanField(default=False, help_text='Public galleries can be accessed without being logged in.', verbose_name='is public'),
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue