Skip to content

Remove the M2M for Works #119

@Neraste

Description

@Neraste

The M2M relationship using a custom intermediary object is too confuse. It leads to a weird access to works in a song JSON representation:

{
  "works": [
    {
      "work": {},
    }
  ]
}

The intermediate object is not a real object, so its name is sometimes hard to understand, e.g. songworklink_set.

Instead, we should use a real WorkLink object with two FKs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactorMake things more beautiful inside, but same outside

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions