Update about page
This commit is contained in:
parent
c86eca4dbb
commit
5f529dc2b9
8 changed files with 102 additions and 25 deletions
|
@ -1,4 +1,4 @@
|
|||
# Generated by Django 5.1.4 on 2025-02-23 15:54
|
||||
# Generated by Django 5.1.7 on 2025-03-28 19:11
|
||||
|
||||
import datetime
|
||||
import django.db.models.deletion
|
||||
|
@ -56,7 +56,7 @@ class Migration(migrations.Migration):
|
|||
name='Photo',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('slug', models.CharField(editable=False, max_length=15, verbose_name='Photo Slug')),
|
||||
('slug', models.CharField(editable=False, max_length=15, unique=True, verbose_name='Photo Slug')),
|
||||
('photo', models.ImageField(height_field='height', upload_to=gallery.models.photo.get_upload_path, verbose_name='Photo', width_field='width')),
|
||||
('width', models.PositiveIntegerField(default=0, editable=False, verbose_name='Photo Width')),
|
||||
('height', models.PositiveIntegerField(default=0, editable=False, verbose_name='Photo Height')),
|
||||
|
@ -88,4 +88,8 @@ class Migration(migrations.Migration):
|
|||
'verbose_name_plural': 'Redirs',
|
||||
},
|
||||
),
|
||||
migrations.AddConstraint(
|
||||
model_name='photo',
|
||||
constraint=models.UniqueConstraint(fields=('slug',), name='unique_photo_slug'),
|
||||
),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue