From 9c074712299a96790a0977e1d74c8ed54547c8d5 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Sun, 15 Feb 2026 15:15:20 -0700 Subject: [PATCH] fix: add missing migration and encryptid.browser.js placeholder - Add migration 0003 for visibility and owner_did fields on SharedSpace (fields were in model but migration was never created, causing 500s) - Add placeholder encryptid.browser.js to fix staticfiles manifest error Co-Authored-By: Claude Opus 4.6 --- ...dspace_owner_did_sharedspace_visibility.py | 23 +++++++++++++++++++ portal/static/portal/encryptid.browser.js | 3 +++ 2 files changed, 26 insertions(+) create mode 100644 files/migrations/0003_sharedspace_owner_did_sharedspace_visibility.py create mode 100644 portal/static/portal/encryptid.browser.js diff --git a/files/migrations/0003_sharedspace_owner_did_sharedspace_visibility.py b/files/migrations/0003_sharedspace_owner_did_sharedspace_visibility.py new file mode 100644 index 0000000..d7377d5 --- /dev/null +++ b/files/migrations/0003_sharedspace_owner_did_sharedspace_visibility.py @@ -0,0 +1,23 @@ +# Generated by Django 5.2.8 on 2026-02-15 22:13 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('files', '0002_alter_sharedspace_max_file_size_mb'), + ] + + operations = [ + migrations.AddField( + model_name='sharedspace', + name='owner_did', + field=models.CharField(blank=True, default='', help_text='EncryptID DID of the space owner', max_length=255), + ), + migrations.AddField( + model_name='sharedspace', + name='visibility', + field=models.CharField(choices=[('public', 'Public'), ('public_read', 'Public Read'), ('authenticated', 'Authenticated'), ('members_only', 'Members Only')], default='public_read', help_text='Who can access this space', max_length=20), + ), + ] diff --git a/portal/static/portal/encryptid.browser.js b/portal/static/portal/encryptid.browser.js new file mode 100644 index 0000000..d1dee06 --- /dev/null +++ b/portal/static/portal/encryptid.browser.js @@ -0,0 +1,3 @@ +/* EncryptID Browser SDK - placeholder + * TODO: Replace with actual SDK from https://encryptid.jeffemmett.com + */