mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-12 23:27:22 +00:00
Citadel: Do not send 'notes/minutes' in note title
This commit is contained in:
parent
069b26949c
commit
57ed55b731
@ -204,7 +204,7 @@ class _EventNoteDataSchema(EventNoteSchema):
|
||||
class Meta:
|
||||
fields = ('title', 'content', 'user')
|
||||
|
||||
title = mm.Function(lambda note: f'{note.object.title} - Notes/Minutes')
|
||||
title = mm.String(attribute='object.title')
|
||||
|
||||
@post_dump
|
||||
def _transform(self, data, **kwargs):
|
||||
|
||||
@ -246,7 +246,7 @@ def test_dump_event_note(db, dummy_user, dummy_event, dummy_contribution, link_t
|
||||
'_data': {
|
||||
'content': 'this is a dummy note',
|
||||
'site': 'http://localhost',
|
||||
'title': f'{note.object.title} - Notes/Minutes',
|
||||
'title': note.object.title,
|
||||
'persons': {'name': 'Guinea Pig'}
|
||||
},
|
||||
'category_id': category_id,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user