mozilla/pontoon

Refactor ActionLog data model to use Generic relationships

Opened this issue · 0 comments

The ActionLog data model uses several different ForeignKeys, which are set or not set based on the action_type. That makes validation complex and difficult to scale.

Generic relationships are designed for this problem specifically, so we should use them instead of the various ForeignKeys.