From d7bd56ea65d01cdb13d80fc1e3a2148d5dd70fd4 Mon Sep 17 00:00:00 2001 From: Pamella Bezerra Date: Mon, 20 May 2024 12:38:45 -0300 Subject: [PATCH 1/3] Fix admin url include --- README.md | 3 ++- celerybeat_status/__init__.py | 2 +- tests/urls.py | 5 +---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index eb43195..a1e1cf9 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,8 @@ from django.urls import include, path urlpatterns = [ # other urls... - path("admin/statuscheck/", include("celerybeat_status.urls", namespace="celerybeat_status")), + path("admin/statuscheck/", include("celerybeat_status.urls")), # celerybeat_status admin + path("admin/", admin.site.urls), # django admin ] ``` diff --git a/celerybeat_status/__init__.py b/celerybeat_status/__init__.py index 3c06c19..d7bb66b 100644 --- a/celerybeat_status/__init__.py +++ b/celerybeat_status/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 __title__ = "CeleryBeat Status" -__version__ = "1.0.0" +__version__ = "1.0.1" __author__ = "Vinta Software" __license__ = "MIT License" __copyright__ = "Copyright 2017 Vinta Serviços e Soluções Tecnológicas Ltda" diff --git a/tests/urls.py b/tests/urls.py index c99cf8b..b772572 100644 --- a/tests/urls.py +++ b/tests/urls.py @@ -4,9 +4,6 @@ urlpatterns = [ # The new admin catch-all view will break URL patterns routed after the admin URLs and matching # the admin URL prefix. Source: https://docs.djangoproject.com/en/5.0/releases/3.2/#id1 - path( - "admin/statuscheck/", - include("celerybeat_status.urls", namespace="celerybeat_status"), - ), + path("admin/statuscheck/", include("celerybeat_status.urls")), path("admin/", admin.site.urls), ] From fe7aa171a1619ee22b752bff7a66ad1e044f3a8d Mon Sep 17 00:00:00 2001 From: Pamella Bezerra Date: Mon, 20 May 2024 12:40:37 -0300 Subject: [PATCH 2/3] Add supported django versions badge to README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a1e1cf9..6b72afb 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ ![PyPI - Version](https://img.shields.io/pypi/v/django-celerybeat-status) ![Supported Python Versions](https://img.shields.io/pypi/pyversions/django-celerybeat-status.svg) +![Supported Django Versions](https://img.shields.io/pypi/frameworkversions/django/django-celerybeat-status.svg) [![Build Status](https://github.com/vintasoftware/django-celerybeat-status/actions/workflows/tests.yml/badge.svg)](https://github.com/vintasoftware/django-celerybeat-status/actions/workflows/tests.yml) [![Coverage Status](https://coveralls.io/repos/github/vintasoftware/django-celerybeat-status/badge.svg?branch=main)](https://coveralls.io/github/vintasoftware/django-celerybeat-status?branch=main) From 3ab08744f4c6e6dc9cf2b95ff4681ef2bd553e25 Mon Sep 17 00:00:00 2001 From: Pamella Bezerra Date: Mon, 20 May 2024 14:25:23 -0300 Subject: [PATCH 3/3] Update URL for consistency --- .../templates/celerybeat_status/periodic_tasks_status_list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/celerybeat_status/templates/celerybeat_status/periodic_tasks_status_list.html b/celerybeat_status/templates/celerybeat_status/periodic_tasks_status_list.html index 909b905..486d205 100644 --- a/celerybeat_status/templates/celerybeat_status/periodic_tasks_status_list.html +++ b/celerybeat_status/templates/celerybeat_status/periodic_tasks_status_list.html @@ -10,7 +10,7 @@ {% block breadcrumbs %} {% endblock %}