Open MiddleFork opened 8 years ago
Yes, I think it that adding a unique constraint makes sense. Would you mind adding a test case and making a pull request? Please make sure that concrete classes will still be able to add thier own unique constraints if needed, I'm not sure about how Django handles that.
+1
Are duplicate child_id/parent_id pairs valid? Or should we apply a unique constraint to avoid adding the same child to the same parent more than once, as shown below: