feat: a link in download section

This commit is contained in:
mohamad
2026-06-07 17:41:41 +03:30
parent cbc49cd8ae
commit 33b3477176
17 changed files with 215 additions and 17 deletions
@@ -0,0 +1,45 @@
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("products", "0015_release_original_filenames"),
]
operations = [
migrations.AddField(
model_name="mainproduct",
name="downloads_section_link_text",
field=models.CharField(
blank=True,
help_text="Label for the optional downloads section link.",
max_length=100,
),
),
migrations.AddField(
model_name="mainproduct",
name="downloads_section_link_url",
field=models.URLField(
blank=True,
help_text="Optional link shown in the top-right corner of the downloads section.",
),
),
migrations.AddField(
model_name="subproduct",
name="downloads_section_link_text",
field=models.CharField(
blank=True,
help_text="Label for the optional downloads section link.",
max_length=100,
),
),
migrations.AddField(
model_name="subproduct",
name="downloads_section_link_url",
field=models.URLField(
blank=True,
help_text="Optional link shown in the top-right corner of the downloads section.",
),
),
]
@@ -0,0 +1,34 @@
# Generated by Django 5.2.13 on 2026-06-07 13:49
import apps.products.release_assets
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0016_downloads_section_link'),
]
operations = [
migrations.AlterField(
model_name='subproductversion',
name='linux_download_file',
field=models.FileField(blank=True, help_text='Optional. Served from this site when the matching URL above is empty. To remove an uploaded file, check Clear, then Save — the file is deleted from the server. Any file type and size are allowed; large uploads may require web server limits.', storage=apps.products.release_assets.ReleaseFileStorage(), upload_to=apps.products.release_assets.release_linux_file_upload_to),
),
migrations.AlterField(
model_name='subproductversion',
name='macos_download_file',
field=models.FileField(blank=True, help_text='Optional. Served from this site when the matching URL above is empty. To remove an uploaded file, check Clear, then Save — the file is deleted from the server. Any file type and size are allowed; large uploads may require web server limits.', storage=apps.products.release_assets.ReleaseFileStorage(), upload_to=apps.products.release_assets.release_macos_file_upload_to),
),
migrations.AlterField(
model_name='subproductversion',
name='source_code_file',
field=models.FileField(blank=True, help_text='Optional. Served from this site when the matching URL above is empty. To remove an uploaded file, check Clear, then Save — the file is deleted from the server. Any file type and size are allowed; large uploads may require web server limits.', storage=apps.products.release_assets.ReleaseFileStorage(), upload_to=apps.products.release_assets.release_source_file_upload_to),
),
migrations.AlterField(
model_name='subproductversion',
name='windows_download_file',
field=models.FileField(blank=True, help_text='Optional. Served from this site when the matching URL above is empty. To remove an uploaded file, check Clear, then Save — the file is deleted from the server. Any file type and size are allowed; large uploads may require web server limits.', storage=apps.products.release_assets.ReleaseFileStorage(), upload_to=apps.products.release_assets.release_windows_file_upload_to),
),
]