Features: 1) Update "Storefront" and "GraphQL Docs" links to use BASE_DOMAIN and STOREFRONT_DOMAIN constants.
Fixes: 1) Add missing import for `BASE_DOMAIN` and `STOREFRONT_DOMAIN`. Extra: 1) Remove unused `base_domain` field from `ConfigType`.
This commit is contained in:
parent
9d97ec3d76
commit
73138c3911
2 changed files with 3 additions and 3 deletions
|
|
@ -675,7 +675,6 @@ class CategoryTagType(DjangoObjectType): # type: ignore [misc]
|
|||
|
||||
class ConfigType(ObjectType): # type: ignore [misc]
|
||||
project_name = String(description=_("project name"))
|
||||
base_domain = String(description=_("company email"))
|
||||
company_name = String(description=_("company name"))
|
||||
company_address = String(description=_("company address"))
|
||||
company_phone_number = String(description=_("company phone number"))
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from evibes.settings import BASE_DOMAIN, STOREFRONT_DOMAIN
|
||||
from evibes.settings.base import EVIBES_VERSION
|
||||
from evibes.settings.constance import CONSTANCE_CONFIG
|
||||
|
||||
|
|
@ -18,11 +19,11 @@ JAZZMIN_SETTINGS = {
|
|||
"user_avatar": "avatar",
|
||||
"topmenu_links": [
|
||||
{"name": _("Home"), "url": "admin:index"},
|
||||
{"name": _("Storefront"), "url": f"https://{CONSTANCE_CONFIG.get('BASE_DOMAIN')[0]}", "new_window": True}, # type: ignore [index]
|
||||
{"name": _("Storefront"), "url": f"https://{STOREFRONT_DOMAIN}", "new_window": True}, # type: ignore [index]
|
||||
{"name": "GitLab", "url": "https://gitlab.com/wiseless/evibes", "new_window": True},
|
||||
{
|
||||
"name": _("GraphQL Docs"),
|
||||
"url": f"https://api.{CONSTANCE_CONFIG.get('BASE_DOMAIN')[0]}/graphql", # type: ignore [index]
|
||||
"url": f"https://api.{BASE_DOMAIN}/graphql", # type: ignore [index]
|
||||
"new_window": True,
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue