Skip to content

Commit

Permalink
global: fix breaking changes from invenio-records
Browse files Browse the repository at this point in the history
  • Loading branch information
lnielsen committed Apr 13, 2022
1 parent 279e7ad commit 3e86dfe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion invenio_vocabularies/contrib/awards/awards.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
award_relations = RelationsField(
funders=PIDRelation(
'funder',
attrs=['name'],
keys=['name'],
pid_field=Funder.pid,
cache_key='funder',
)
Expand Down
2 changes: 1 addition & 1 deletion invenio_vocabularies/contrib/names/names.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
name_relations = RelationsField(
affiliations=PIDListRelation(
'affiliations',
attrs=['name'],
keys=['name'],
pid_field=Affiliation.pid,
cache_key='affiliations',
)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
]

install_requires = [
"invenio-records-resources>=0.19.6,<0.20.0",
"invenio-records-resources>=0.19.9,<0.20.0",
"lxml>=4.5.0",
"PyYAML>=5.4.1",
]
Expand Down
2 changes: 1 addition & 1 deletion tests/mock_module/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Record(RecordBase):
relations = RelationsField(
languages=PIDListRelation(
'metadata.languages',
attrs=['id', 'title'],
keys=['id', 'title'],
pid_field=Vocabulary.pid.with_type_ctx('languages')
),
)
Expand Down

0 comments on commit 3e86dfe

Please sign in to comment.