Bogdanp / django_dramatiq

A Django app that integrates with Dramatiq.
https://dramatiq.io
Other
331 stars 77 forks source link

Is it possible to map the user ID from who started the task? #8

Closed lbiaggi closed 6 years ago

lbiaggi commented 6 years ago

Hi @Bogdanp,

I just discovered django_dramatiq and it seems very beautiful and simple

I wanna to extend this model to add user info to the task, is it possible?

Bogdanp commented 6 years ago

You should be able to add the package as a dependency and then subclass the task model and write your own admin middleware, but it might get hairy pretty quick. A better option would probably be to pull in the whole package source into your project right now. The package doesn't change often so I wouldn't worry about dealing with changes too much.