You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here, OLD and NEW will build JSON according to the columns as they're stored in the database (i.e. will use the db_column value on a ForeignKey if set). We then attempt to deserialise that value in the TriggerPayload class in order to build the old and new arguments to our trigger based listener. Our deserialisation method looks as follows:
The error comes in the line self._model(**self._old_row_data): since self._old_row_data was built by the aformentioned trigger payload (which uses the database column names), if a model has a FK attribute which does not match the corresponding db column name, we'll get an error like
See #19 for more
The text was updated successfully, but these errors were encountered: