I need to add an attribute to the
Event class via plugin. I’m facing this issue:
I patched the
EventDataForm in order to have the new field in the form, but the
populate_from_dict method raises a
ValueError: Event has no attribute "...". I patched the Event model class as well in order to have the attribute available in both: class and table. It worked properly and fixed the issue from the
update_event, which, at the first line has an assert with an hardcoded list of updatable attributes. Obviously my attribute is not in the list.
I assume the list above is there to prevent some malicious data from the client-side.
Is there some guideline or a suggested strategy to address this scenario?