Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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 admin/cedar/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ class CedarMetadataTemplateForm(ModelForm):

class Meta:
model = CedarMetadataTemplate
fields = ['schema_name', 'cedar_id', 'template_version', 'template', 'active']
fields = ['schema_name', 'cedar_id', 'template_version', 'template', 'active', 'should_index_for_search']
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2.26 on 2026-04-13 12:24

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('osf', '0038_abstractprovider_required_metadata_template'),
]

operations = [
migrations.AddField(
model_name='cedarmetadatatemplate',
name='should_index_for_search',
field=models.BooleanField(default=False),
),
]
1 change: 1 addition & 0 deletions osf/models/cedar_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class CedarMetadataTemplate(ObjectIDMixin, BaseModel):
template = DateTimeAwareJSONField(default=dict)
active = models.BooleanField(default=True)
template_version = models.PositiveIntegerField()
should_index_for_search = models.BooleanField(default=False)

class Meta:
unique_together = ('cedar_id', 'template_version')
Expand Down
Loading