Reuse existing files as previews, icons or featured images #161

Merged
Anna Sirota merged 11 commits from files-allow-reuse-between-ext into main 2024-06-04 12:23:26 +02:00
2 changed files with 2 additions and 32 deletions
Showing only changes of commit 72bad9d36d - Show all commits

View File

@ -1,30 +0,0 @@
# Generated by Django 4.2.11 on 2024-06-03 15:05
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('files', '0010_remove_file_extension_alter_file_hash_and_more'),
('extensions', '0032_extension_extensions__is_list_765936_idx_and_more'),
]
operations = [
migrations.AlterField(
model_name='extension',
name='featured_image',
field=models.ForeignKey(help_text='Shown by social networks when this extension is shared (used as `og:image` metadata field).Should have resolution of at least 1920 x 1080 and aspect ratio of 16:9.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='featured_image_of', to='files.file'),
),
migrations.AlterField(
model_name='extension',
name='icon',
field=models.ForeignKey(help_text='A 256 x 256 PNG icon representing this extension.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='icon_of', to='files.file'),
),
migrations.AlterField(
model_name='preview',
name='file',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='files.file'),
),
]

View File

@ -1,4 +1,4 @@
# Generated by Django 4.2.11 on 2024-06-03 16:38 # Generated by Django 4.2.11 on 2024-06-04 08:54
from django.db import migrations, models from django.db import migrations, models
import django.db.models.deletion import django.db.models.deletion
@ -8,7 +8,7 @@ class Migration(migrations.Migration):
dependencies = [ dependencies = [
('files', '0010_remove_file_extension_alter_file_hash_and_more'), ('files', '0010_remove_file_extension_alter_file_hash_and_more'),
('extensions', '0033_alter_extension_featured_image_alter_extension_icon_and_more'), ('extensions', '0033_extensions_fts_20240603_1918'),
] ]
operations = [ operations = [