The has_one field uses linking and unlinking - you cannot completely delete a link object in the has_one field without altering that field.
The has_many/many_many field doesn't allow linking to existing links at all, and deleting a link here does delete the object.
I'm working on a pull request to address #1 right now so I'd be happy to make these consistent at the same time - just let me know how you'd like this to work.
The options as I see them:
Leave it as is
Replace the unlink button on the has_one field with a delete button, and remove the option for linking to existing objects.
Add the ability to link to existing items in the many field, and replace the delete button here with an unlink button.
Make this configurable, so the user can specify whether linking/unlinking should be possible, or if pure deletion is preferred.
In this case, either 2 or 3 should be specified as a default, so the default is always consistent between fields of different relationship types.
Let me know what you prefer and I'll add it into the pull request I'm putting together.
The has_one field uses linking and unlinking - you cannot completely delete a link object in the has_one field without altering that field.
The has_many/many_many field doesn't allow linking to existing links at all, and deleting a link here does delete the object.
I'm working on a pull request to address #1 right now so I'd be happy to make these consistent at the same time - just let me know how you'd like this to work. The options as I see them:
Let me know what you prefer and I'll add it into the pull request I'm putting together.