new-ara-api icon indicating copy to clipboard operation
new-ara-api copied to clipboard

Fix article and attachment relationship to one-to-many

Open injoonH opened this issue 1 year ago • 0 comments

Though files and articles have one-to-many relations, the code uses many-to-many. It seems that it can be solved by just changing the field to ForeignKey, there are cases where the idempotent issue occurred, resulting in two articles with the same content being made. In these cases, attachments have multiple related articles.

injoonH avatar Oct 05 '23 15:10 injoonH