shacker / django-todo

A multi-user, multi-group todo/ticketing system for Django projects. Includes CSV import and integrated mail tracking.
http://django-todo.org
BSD 3-Clause "New" or "Revised" License
822 stars 285 forks source link

Relate tasks to other objects #141

Open LarsAC opened 1 year ago

LarsAC commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

@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.