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 = [