File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 4
4
import logging
5
5
6
6
from dandischema .models import AccessType
7
+ from dandischema .conf import get_instance_config as get_schema_instance_config
7
8
from django .conf import settings
8
9
from django .contrib .postgres .indexes import HashIndex
9
10
from django .core .validators import RegexValidator
18
19
19
20
logger = logging .getLogger (__name__ )
20
21
22
+ _SCHEMA_INSTANCE_CONFIG = get_schema_instance_config ()
21
23
22
24
class Version (PublishableMetadataMixin , TimeStampedModel ):
23
25
VERSION_REGEX = r'(0\.\d{6}\.\d{4})|draft'
@@ -217,9 +219,9 @@ def _populate_metadata(self):
217
219
),
218
220
'manifestLocation' : manifest_location (self ),
219
221
'name' : self .name ,
220
- 'identifier' : f'DANDI :{ self .dandiset .identifier } ' ,
222
+ 'identifier' : f'{ _SCHEMA_INSTANCE_CONFIG . instance_name } :{ self .dandiset .identifier } ' ,
221
223
'version' : self .version ,
222
- 'id' : f'DANDI :{ self .dandiset .identifier } /{ self .version } ' ,
224
+ 'id' : f'{ _SCHEMA_INSTANCE_CONFIG . instance_name } :{ self .dandiset .identifier } /{ self .version } ' ,
223
225
'repository' : settings .DANDI_WEB_APP_URL ,
224
226
'url' : (
225
227
f'{ settings .DANDI_WEB_APP_URL } /dandiset/{ self .dandiset .identifier } /{ self .version } '
You can’t perform that action at this time.
0 commit comments