Fix views & update templates
This commit is contained in:
parent
3029eea1a0
commit
bd12a0abef
5 changed files with 24 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
# Generated by Django 5.1.7 on 2025-03-31 18:01
|
||||
# Generated by Django 5.1.7 on 2025-04-11 19:37
|
||||
|
||||
import datetime
|
||||
import django.db.models.deletion
|
||||
|
@ -70,7 +70,6 @@ class Migration(migrations.Migration):
|
|||
options={
|
||||
'verbose_name_plural': 'Photos',
|
||||
'ordering': ('-taken_at',),
|
||||
'unique_together': {('album', 'slug')},
|
||||
},
|
||||
),
|
||||
migrations.AddField(
|
||||
|
@ -89,4 +88,16 @@ class Migration(migrations.Migration):
|
|||
'verbose_name_plural': 'Redirs',
|
||||
},
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name='photo',
|
||||
index=models.Index(fields=['views'], name='gallery_pho_views_cec6da_idx'),
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name='photo',
|
||||
index=models.Index(fields=['likes'], name='gallery_pho_likes_6955ed_idx'),
|
||||
),
|
||||
migrations.AlterUniqueTogether(
|
||||
name='photo',
|
||||
unique_together={('album', 'slug')},
|
||||
),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue