-
Notifications
You must be signed in to change notification settings - Fork 61
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
Is there a way to abstract back the task selection code in our custom save override? #52
Comments
Agreed. On Tuesday, June 17, 2014, Ben Welsh notifications@github.com wrote:
-Ken Schwencke |
Tell me what's wrong below.
|
I suppose the new model needs a def delete(self, *args, **kwargs):
# if obj.save(unpublish=False) has been passed, we skip the task.
unpublish = kwargs.pop('unpublish', True)
super(self.__class__, self).delete(*args, **kwargs)
if not unpublish:
pass
else:
tasks.unpublish.delay(self) |
It would be nice if we didn't have to do all this every time we implement a Celery based deployment.
The text was updated successfully, but these errors were encountered: