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

Relate tasks to other objects #141

Open
LarsAC opened this issue Aug 23, 2023 · 2 comments
Open

Relate tasks to other objects #141

LarsAC opened this issue Aug 23, 2023 · 2 comments

Comments

@LarsAC
Copy link

LarsAC commented Aug 23, 2023

Hello,

I would like to reference other objects (e.g. a system) in my database from tasks so that I can build a view showing all tasks related to a system.

I can of course fork the project and extend the schema - but are there better ways / ideas to do this ?

Lars

@shacker
Copy link
Owner

shacker commented Aug 24, 2023

@LarsAC Do you mean that a task list might actually be a list of links to other things, like schematics etc. ? I'm not quite sure how that would work. Doable but I'm not sure there's enough call for that to build it into Django-todo. I think this might be a use case for forking the project. Unless you can come up with a non-disruptive way to make this configurable...

@LarsAC
Copy link
Author

LarsAC commented Aug 25, 2023

@shacker sorry, probably did not describe my idea well. I intend to have a link from a task to some other object, e. g. a Sytem or Asset (which are model classes) through a foreign key.

That way I could query a list of tasks related to a System or other object. Maybe an alternative is to have one task list per such Asset object and have a one-to-one relation from Asset to a task list.

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

2 participants