-
Notifications
You must be signed in to change notification settings - Fork 285
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
Assign task to multiple people #65
Comments
Hi James - this is a great idea. It should be as simple as converting the ForeignKey from Task to User to a ManyToMany field, and modifying the UI to allow multi-assignment. It would also have to ensure that emails are sent to all of the right parties. The general process for contributing to open source on github is this:
Thanks. |
I tried simply converting the ForeignKey from Task to User to a ManyToMany field, it worked almost correctly, except the task_detail view, where i couldn't update the "Assigned to:" column. However it worked fine when creating a new task, or editing the task from the admin panel. Any suggestion? |
Two things - |
@MonstreCharmant You would need to replace the Assigned To dropdown with some sort of multiple-choice selection widget. Or did you do that already and I'm misunderstanding the question? |
Thank you guys, I just added
|
@MonstreCharmant I added |
Still hoping that one of you can share your changes back to the mother project here! Pull request please? |
Yes, will do that. Working on some jobs now, but I'll share my changes once I got some time. |
can you share your changes |
I'm sorry that I never did share mine. I'm no longer working at the job where I was working on this, so I don't think that I would be able to access the code easily. If you decide to reimplement it, I wish you the best of luck. |
can you guide me how you done the task few tips |
It has been 2 years, so I don't remember a lot of the details. It was something like this:
Feel free to ask follow-up questions. 🙂 |
okay what for selection of users from template |
I think I started by making sure it worked using the default multi-select interface. Then, once I was sure that that worked, I figured out how to use the pretty widget from the Django admin. There's some advice here (I recommend reading the comments on that answer). Does that make sense? |
it show something like this and the values not saving in db and i want to make check box to select multiple users |
Did you add I've never tried doing the checkboxes. |
yes i do |
I don't think there's much more I can do to help right now. |
I had the same issue of m2m fields being rendered with this "none" thing in a table. Have you tried to add something like this in the template ? This loop worked fine for me, I hope it will help you ! |
@diogne thank you, hopefully @f4i5i finds that helpful! 🙂 If you want, you can submit a pull request to accomplish what I never succeeded in finishing 😅 By the way, just so you know about the feature: if you want to put multiple lines of code, a way to do it is to indent them, like this:
|
Many thanks for your kind reply and the tips ! I appreciate it ! |
This is a great idea and it would rock if someone PRed it. |
@bernd-wechner what is the credentials to log |
Sorry, but I'm not sure what you're asking. Can you clarify? |
Hello all,
I just started using Django todo, and I love the simplicity of it. I recently hacked together a fork (locally, not on GitHub) that allows a task to be assigned to multiple users. It's not perfect yet, but would this be something worth sharing? If so, would it be the sort of thing that would stay as a fork, or could it be incorporated into the main project repo?
(I haven't contributed much on GitHub, so that's why I'm asking for etiquette advice.)
Thanks!
The text was updated successfully, but these errors were encountered: