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

django-todo & wagtail integration #69

Closed
AdrienLemaire opened this issue Apr 23, 2019 · 5 comments
Closed

django-todo & wagtail integration #69

AdrienLemaire opened this issue Apr 23, 2019 · 5 comments

Comments

@AdrienLemaire
Copy link

AdrienLemaire commented Apr 23, 2019

Hi,

I'm evaluating what are my options to add a task & writer management system to the Wagtail CMS, and I discovered django-todo through this comment on ls.joyous.

I will spend more time studying the internals of django-todo to see if I could start a wagtail-todo project (other names I have in mind are wagtail-tasks and wagtail-workflow).

First of all, I cannot see django-todo's roadmap. If there is one, can you point it out? It looks like you've been maintaining it for a while, which is reassuring, but that would be upsetting if you were to stop maintaining it tomorrow :)

Some features that I would need, but could be added directly to django-todo, are:

  • Recurring tasks (time-based, trigger action based)
  • Templates (managed from django-admin, ManyToManyField with Groups, select dropdown list in form)

Some unique features I can think of adding in a project reconcialing wagtail and django-todo are:

  • wagtail-admin styled templates (I suppose I'll take inspiration from your GTD app)
  • hooks to auto-complete and auto-create tasks (latter if recurring task feature doesn't exist in django-todo) based on some event, and default templates to figure out what task to complete/create depending on the model action being performed (sounds shaky, but trying to link tasks with some contenttype, some field and some field value opens a hole of complexity)

What are your thoughts on this? I'll be keen on contributing to django-todo core, but I have a tight schedule (I'll need to have something shipped in production by the end of next month), so your support will be highly appreciated :)

@shacker
Copy link
Owner

shacker commented Apr 23, 2019

@Fandekasp I'm a huge fan of wagtail, and used it on a work project for a couple of years, but am no longer current with wagtail. That said, I'd love to see an integration!

First, I think you should separate out from your list above the things that have nothing to do with wagail. Please feel free to create separate issues for:

  • Recurring tasks
  • Trigger-action tasks (these are two quite different things as I see it)

If I recall, the way to get Django models to appear in the Wagtail admin is to have them inherit from the Wagtail Page class. That unfortunately is not something we want to do in this core project, since it needs to work in any site. If there are other ways to get Django models to appear, you should look into that and write your own plugin or bridge module that you can distribute (I'll link to it). That would cover your wagtail admin templates too.

So basically, happy to take contributions for scheduled and triggered tasks, but wagtail-specific functionality should exist as an outside module. The last thing we need is a bunch of conditional code to support the specifics of a bunch of different CMSs.

@AdrienLemaire
Copy link
Author

@shacker thanks for the quick reply. Glad to see we're thinking alike.

I only recently discovered Wagtail, but I understand we can either extend ModelAdmin or register snippets. That's something I would handle in a wagtail-todo app.

I will create separate issues for each component, but would you mind telling me more about django-todo's plans for the future? Is there no roadmap? Will you at least keep django-todo up to date with the test Django version?

@shacker
Copy link
Owner

shacker commented Apr 23, 2019

The only roadmap is the features you see mentioned in the Issues here, and the priority is whatever I decide to work on next, or what someone contributes code for :)

And yes, this project is going on 11 years now. It's evolved a ton in that time! It's open source software - if I stopped working on it, I would hand off responsibility to someone else, or you would have 142 forks to choose from :)

@AdrienLemaire
Copy link
Author

alright, fair enough :)

I'll spend some time learning about django-todo and see how it could fit with wagtail, and if I decide to go with it, I'll create the new issues and we can go from there. Thanks again for the fast support!

@datatalking
Copy link

@Fandekasp were you able to make any progress on using this with wagtail?

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