Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve tooling for adding relationships #232

Open
saemideluxe opened this issue Jan 27, 2022 · 1 comment
Open

Improve tooling for adding relationships #232

saemideluxe opened this issue Jan 27, 2022 · 1 comment
Assignees

Comments

@saemideluxe
Copy link
Member

Adding relationships is currently not very straight-fordward. That should be improved.

I suggest that we have something like a drop-down button which lists all possible relationship types and clicking one will bring up the according dialog. Relationships with a reverse-name should be listed two times, once with the normal name and once with the reversed name. And the opening dialog can then populate the correct person, be it A or B.

Another improvment we can add is to add restrictions to the type of allowed "endpoints" for a relationship. For that we could have a ManyToMany field to "ContentType" and add an attribute lazy_choices for filtering to be limited to subclasses of core.Person. And we could even add a filter-field to limit the list of possible relationship endpoints. And then show only the options in the UI where there is a non-empty queryset.

So two parts for this: One is the UI and secondly the model. But in order to get more out of the UI we need to improve the model first.

@ghost ghost assigned wipascal Jan 27, 2022
@saemideluxe
Copy link
Member Author

I think it would also be helpfull if we can reuse parts of the UI from other pages, not only directly on the relationship page, but e.g. having a single button which we can place anywhere which will bring up a modal to a specific relationship or something like that.

@saemideluxe saemideluxe transferred this issue from basxsoftwareassociation/bread Jan 27, 2022
@saemideluxe saemideluxe assigned dward2nd and unassigned wipascal Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants