api: record API classes should implement custom get_record
for their type
#11
Labels
bug
Something isn't working
get_record
for their type
#11
Generated (or default) record API classes for vocabularies that use the common
VocabularyMetadata
model for storage, should be able to have a more "precise"get_record()
method, which makes sure that the correct type of vocabulary is also fetched.In practice, that means that it shouldn't be possible to call
Language.get_record()
with a License ID and get a result backA rough implementation of this was done here: https://github.com/inveniosoftware/invenio-rdm-records/blob/f5b7cbc483f4754ab1e592f492e830bf86fd772d/invenio_rdm_records/records/api.py#L30-L41
The text was updated successfully, but these errors were encountered: