add api_secret auth and (mostly) finalize firmware endpoint

This commit is contained in:
Laura Klünder 2023-11-05 19:09:36 +01:00
parent 9e9e41fb3f
commit aa2df8d3c5
6 changed files with 123 additions and 4 deletions

View file

@ -155,7 +155,7 @@ class FirmwareBuild(models.Model):
variant = models.CharField(_('variant name'), max_length=64)
chip = models.SmallIntegerField(_('chip'), db_index=True, choices=CHIPS)
sha256_hash = models.CharField(_('SHA256 hash'), unique=True, max_length=64)
project_description = models.JSONField
project_description = models.JSONField(verbose_name=_('project_description.json'))
binary = models.FileField(_('firmware file'), null=True, upload_to=firmware_upload_path)
class Meta: