Skip to content

Commit 686b581

Browse files
authored
Merge pull request #11211 from antkryt/feature/ENG-6135
[ENG-6135] Enable additional content type word choices for registry providers
2 parents 4391db2 + d7f8c7a commit 686b581

3 files changed

Lines changed: 20 additions & 0 deletions

File tree

api/providers/serializers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ class Meta:
170170
reviews_comments_anonymous = ser.BooleanField(read_only=True)
171171
allow_updates = ser.BooleanField(read_only=True)
172172
allow_bulk_uploads = ser.BooleanField(read_only=True)
173+
registration_word = ser.CharField(read_only=True, allow_null=True)
173174

174175
registrations = ReviewableCountsRelationshipField(
175176
related_view='providers:registration-providers:registrations-list',
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 4.2.15 on 2025-06-30 14:02
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('osf', '0030_abstractnode__manual_guid'),
10+
]
11+
12+
operations = [
13+
migrations.AddField(
14+
model_name='abstractprovider',
15+
name='registration_word',
16+
field=models.CharField(default='registration', max_length=50),
17+
),
18+
]

osf/models/provider.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ class RegistrationProvider(AbstractProvider):
305305
bulk_upload_auto_approval = models.BooleanField(null=True, blank=True, default=False)
306306
allow_updates = models.BooleanField(null=True, blank=True, default=False)
307307
allow_bulk_uploads = models.BooleanField(null=True, blank=True, default=False)
308+
registration_word = models.CharField(max_length=50, default='registration')
308309

309310
def __init__(self, *args, **kwargs):
310311
self._meta.get_field('share_publish_type').default = 'Registration'

0 commit comments

Comments
 (0)