From 0bb780610f2f37bb82a2944ceb6140f990c0512b Mon Sep 17 00:00:00 2001 From: Vinicius Aguiar Date: Wed, 11 Oct 2023 20:38:15 -0300 Subject: [PATCH] chore: override django stripe verbose name (#449) --- basedosdados_api/payments/apps.py | 7 +++---- basedosdados_api/settings/base.py | 5 ++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/basedosdados_api/payments/apps.py b/basedosdados_api/payments/apps.py index 39aeccde..f3334437 100644 --- a/basedosdados_api/payments/apps.py +++ b/basedosdados_api/payments/apps.py @@ -1,7 +1,6 @@ # -*- coding: utf-8 -*- -from django.apps import AppConfig +from djstripe.apps import DjstripeAppConfig -class PaymentsConfig(AppConfig): - name = "basedosdados_api.payments" - app_label = "payments" +class PaymentsConfig(DjstripeAppConfig): + verbose_name = "Stripe" diff --git a/basedosdados_api/settings/base.py b/basedosdados_api/settings/base.py index d369c99a..bb859624 100644 --- a/basedosdados_api/settings/base.py +++ b/basedosdados_api/settings/base.py @@ -44,18 +44,17 @@ "health_check", "health_check.db", # - "djstripe", "corsheaders", + "ordered_model", "haystack", "graphene_django", - "ordered_model", "huey.contrib.djhuey", # Apps "basedosdados_api.account", "basedosdados_api.core", "basedosdados_api.api.v1", "basedosdados_api.schemas", - "basedosdados_api.payments", + "basedosdados_api.payments.apps.PaymentsConfig", ] MIDDLEWARE = [