Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion downloads/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Meta(GenericResource.Meta):
'name', 'slug',
'creator', 'last_modified_by',
'os', 'release', 'description', 'is_source', 'url', 'gpg_signature_file',
'md5_sum', 'filesize', 'download_button', 'sigstore_signature_file',
'md5_sum', 'sha256_sum', 'filesize', 'download_button', 'sigstore_signature_file',
'sigstore_cert_file', 'sigstore_bundle_file', 'sbom_spdx2_file',
]
filtering = {
Expand Down
18 changes: 18 additions & 0 deletions downloads/migrations/0014_releasefile_sha256_sum.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2.26 on 2025-11-27 16:45

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('downloads', '0013_alter_release_content_markup_type'),
]

operations = [
migrations.AddField(
model_name='releasefile',
name='sha256_sum',
field=models.CharField(blank=True, max_length=200, verbose_name='SHA256 Sum'),
),
]
1 change: 1 addition & 0 deletions downloads/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ class ReleaseFile(ContentManageable, NameSlugModel):
"SPDX-2 SBOM URL", blank=True, help_text="SPDX-2 SBOM URL"
)
md5_sum = models.CharField('MD5 Sum', max_length=200, blank=True)
sha256_sum = models.CharField('SHA256 Sum', max_length=200, blank=True)
filesize = models.IntegerField(default=0)
download_button = models.BooleanField(default=False, help_text="Use for the supernav download button for this OS")

Expand Down
1 change: 1 addition & 0 deletions downloads/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class Meta:
'url',
'gpg_signature_file',
'md5_sum',
'sha256_sum',
'filesize',
'download_button',
'resource_uri',
Expand Down