Features: 1) Update Russian translation for "balances" in payments/locale/ru_RU/LC_MESSAGES/django.po; 2) Enable UI builder in Jazzmin settings; 3) Add "uuid" to readonly_fields in both blog/admin.py and core/admin.py;
Fixes: 1) Correct Russian translation for "balances" in locale files; 2) Fix mismatch in Jazzmin `site_brand` configuration to use project name; Extra: Refactor locale files, add missing translation updates, and adjust formatting;
This commit is contained in:
parent
78f3081f2b
commit
d3dbbcb242
9 changed files with 13 additions and 13 deletions
|
|
@ -14,7 +14,7 @@ class PostAdmin(SummernoteModelAdminMixin, FieldsetsMixin, BasicModelAdmin):
|
|||
filter_horizontal = ("tags",)
|
||||
date_hierarchy = "created"
|
||||
autocomplete_fields = ("author", "tags")
|
||||
readonly_fields = ("slug",)
|
||||
readonly_fields = ("uuid", "slug",)
|
||||
|
||||
summernote_fields = ("content",)
|
||||
general_fields = [
|
||||
|
|
|
|||
|
|
@ -217,7 +217,7 @@ class BrandAdmin(FieldsetsMixin, BasicModelAdmin):
|
|||
list_display = ("name",)
|
||||
list_filter = ("categories", "is_active")
|
||||
search_fields = ("uuid", "name", "categories__name")
|
||||
readonly_fields = ("uuid", "modified", "created")
|
||||
readonly_fields = ("uuid", "slug", "modified", "created")
|
||||
|
||||
general_fields = ["is_active", "name", "description"]
|
||||
relation_fields = ["small_logo", "big_logo", "categories"]
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -134,7 +134,7 @@ msgstr "Конфигурация"
|
|||
|
||||
#: core/apps.py:8
|
||||
msgid "core"
|
||||
msgstr "Ядро"
|
||||
msgstr "Главное"
|
||||
|
||||
#: core/choices.py:4 core/choices.py:20
|
||||
msgid "finished"
|
||||
|
|
@ -1125,7 +1125,7 @@ msgstr "URL-адрес изображения"
|
|||
|
||||
#: core/graphene/object_types.py:356
|
||||
msgid "product's images"
|
||||
msgstr "Изображения продукта"
|
||||
msgstr "Изображения товара"
|
||||
|
||||
#: core/graphene/object_types.py:363 core/models.py:256 core/models.py:331
|
||||
msgid "category"
|
||||
|
|
@ -1165,7 +1165,7 @@ msgstr "Количество отзывов"
|
|||
|
||||
#: core/graphene/object_types.py:388 core/models.py:393
|
||||
msgid "products"
|
||||
msgstr "Продукция"
|
||||
msgstr "Товары"
|
||||
|
||||
#: core/graphene/object_types.py:436
|
||||
msgid "promocodes"
|
||||
|
|
@ -1177,7 +1177,7 @@ msgstr "Продукты в продаже"
|
|||
|
||||
#: core/graphene/object_types.py:453 core/models.py:591
|
||||
msgid "promotions"
|
||||
msgstr "Акции"
|
||||
msgstr "Промоакции"
|
||||
|
||||
#: core/graphene/object_types.py:457 core/models.py:119
|
||||
msgid "vendor"
|
||||
|
|
@ -1189,7 +1189,7 @@ msgstr "Поставщик"
|
|||
#: core/templates/shipped_order_created_email.html:107
|
||||
#: core/templates/shipped_order_delivered_email.html:107
|
||||
msgid "product"
|
||||
msgstr "Продукт"
|
||||
msgstr "Товар"
|
||||
|
||||
#: core/graphene/object_types.py:469 core/models.py:661
|
||||
msgid "wishlisted products"
|
||||
|
|
@ -1590,7 +1590,7 @@ msgstr "Продукт, который представлен на этом из
|
|||
|
||||
#: core/models.py:559
|
||||
msgid "product images"
|
||||
msgstr "Изображения продуктов"
|
||||
msgstr "Изображения товаров"
|
||||
|
||||
#: core/models.py:567
|
||||
msgid "percentage discount for the selected products"
|
||||
|
|
@ -1678,7 +1678,7 @@ msgstr "Цифровой файл"
|
|||
|
||||
#: core/models.py:651
|
||||
msgid "stock entries"
|
||||
msgstr "Складские состояния"
|
||||
msgstr "Наличия"
|
||||
|
||||
#: core/models.py:660
|
||||
msgid "products that the user has marked as wanted"
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ from evibes.settings.constance import CONSTANCE_CONFIG
|
|||
JAZZMIN_SETTINGS = {
|
||||
"site_title": f"{CONSTANCE_CONFIG.get('PROJECT_NAME')[0]} Admin", # type: ignore
|
||||
"site_header": str(CONSTANCE_CONFIG.get("PROJECT_NAME")[0]), # type: ignore
|
||||
"site_brand": str(CONSTANCE_CONFIG.get("COMPANY_NAME")[0]), # type: ignore
|
||||
"site_brand": str(CONSTANCE_CONFIG.get("PROJECT_NAME")[0]), # type: ignore
|
||||
"site_logo": "logo.png",
|
||||
"login_logo": "logo.png",
|
||||
"login_logo_dark": "logo.png",
|
||||
|
|
@ -41,7 +41,7 @@ JAZZMIN_SETTINGS = {
|
|||
"default_icon_children": "fas fa-circle",
|
||||
"related_modal_active": False,
|
||||
"use_google_fonts_cdn": True,
|
||||
"show_ui_builder": False,
|
||||
"show_ui_builder": True,
|
||||
"changeform_format": "horizontal_tabs",
|
||||
"language_chooser": True,
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -64,7 +64,7 @@ msgstr "Баланс"
|
|||
|
||||
#: payments/models.py:62
|
||||
msgid "balances"
|
||||
msgstr "Весы"
|
||||
msgstr "Балансы"
|
||||
|
||||
#: payments/templates/balance_deposit_email.html:7
|
||||
#: payments/templates/balance_deposit_email.html:100
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -274,7 +274,7 @@ msgstr "Выдающийся жетон"
|
|||
|
||||
#: vibes_auth/models.py:124
|
||||
msgid "outstanding tokens"
|
||||
msgstr "Выпущенные жетоны"
|
||||
msgstr "Выпущенные токены"
|
||||
|
||||
#: vibes_auth/models.py:130
|
||||
msgid "blacklisted token"
|
||||
|
|
|
|||
Loading…
Reference in a new issue