From 4c5b6776fc53e4556dd810c2f3bb7b43d54738b9 Mon Sep 17 00:00:00 2001 From: Ilan Steemers Date: Thu, 17 Sep 2015 00:37:52 +0200 Subject: [PATCH 1/3] codecov --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index b7b557c..7f48614 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,7 +27,7 @@ before_script: install: - pip install -q django==$DJANGO - pip install -r requirements.txt - - pip install pytest-django coveralls sphinx + - pip install pytest-django codecov sphinx - python setup.py install script: @@ -35,7 +35,7 @@ script: - sphinx-build -b html -d docs/_build/doctrees -nW docs docs/_build/html after_success: - - coveralls + - codecov notifications: webhooks: From 1ec1598200e04821931001d9366544e372673882 Mon Sep 17 00:00:00 2001 From: Ilan Steemers Date: Thu, 17 Sep 2015 14:50:19 +0200 Subject: [PATCH 2/3] Adds remote orm queue to admin view --- django_q/admin.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/django_q/admin.py b/django_q/admin.py index 6e3c8ba..36f70a1 100644 --- a/django_q/admin.py +++ b/django_q/admin.py @@ -104,6 +104,15 @@ class QueueAdmin(admin.ModelAdmin): 'lock' ) + def save_model(self, request, obj, form, change): + obj.save(using=Conf.ORM) + + def delete_model(self, request, obj): + obj.delete(using=Conf.ORM) + + def get_queryset(self, request): + return super(QueueAdmin, self).get_queryset(request).using(Conf.ORM) + def has_add_permission(self, request, obj=None): """Don't allow adds.""" return False From 652350139997fc74ea61918cc809c2825e372d43 Mon Sep 17 00:00:00 2001 From: Ilan Steemers Date: Thu, 17 Sep 2015 16:07:15 +0200 Subject: [PATCH 3/3] codecov badge --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 9e0f254..731cf77 100644 --- a/README.rst +++ b/README.rst @@ -200,8 +200,8 @@ Acknowledgements .. |image0| image:: https://travis-ci.org/Koed00/django-q.svg?branch=master :target: https://travis-ci.org/Koed00/django-q -.. |image1| image:: https://coveralls.io/repos/Koed00/django-q/badge.svg?branch=master - :target: https://coveralls.io/r/Koed00/django-q?branch=master +.. |image1| image:: http://codecov.io/github/Koed00/django-q/coverage.svg?branch=master + :target: http://codecov.io/github/Koed00/django-q?branch=master .. |image2| image:: http://badges.gitter.im/Join%20Chat.svg :target: https://gitter.im/Koed00/django-q .. |docs| image:: https://readthedocs.org/projects/docs/badge/?version=latest