489ceeaa2a
Features: 1) Add AbstractGateway base class with process_transaction and process_callback methods.
...
Fixes: 1) Correct gateway status handling logic in `payments/signals.py`.
Extra: 1) Remove redundant condition checks in `payments/signals.py`.
2025-06-22 20:26:51 +03:00
b92e7e28f1
Features: 1) Add new email content translations for ru_RU, zh_Hans, and ro_RO locales; 2) Update "balance deposit" and general email-related translations across multiple languages;
...
Fixes: 1) Correct inconsistent formatting in translation strings; 2) Fix placeholders in email templates for better accuracy;
Extra: Update `.gitignore` to include `.env` file exclusion.
2025-06-22 20:18:19 +03:00
d9e50c04c1
Features: 1) Add related_models attribute to document configuration;
...
Fixes: None;
Extra: None;
2025-06-22 18:30:49 +03:00
5c8d83a7ae
Fixes: 1) Add OperationalError to the base exception filter list;
...
Extra: None;
2025-06-22 18:25:19 +03:00
3a89fb4aca
Fixes: 1) Remove unused "health_check.contrib.celery" from installed apps;
...
Extra: 1) Removed dead code to improve clarity and maintainability;
2025-06-22 18:23:03 +03:00
35ac700a44
Features: 1) Add verbose_name attribute to multiple Slug fields for better clarity;
...
Fixes: 1) Correct conditional handling of `fieldsets` to avoid duplicate `metadata` fields in admin view;
Extra: n/a;
2025-06-22 17:12:59 +03:00
43141bc3d5
Features: 1) Extend metadata field handling in admin to include both uuid and slug.
...
Fixes: _(no relevant changes detected)_.
Extra: 1) Update Russian locale binary (`django.mo`) file content.
2025-06-22 17:08:16 +03:00
437f3cff31
Features: 1) Simplify FieldsetsMixin class by including translation handling method inline; 2) Improve icon consistency with updated replacements in ModelAdmin classes.
...
Fixes: 1) Add missing `# type: ignore` comments for type-checking in admin site customizations.
Extra: 1) Refactor admin models by removing `TranslationFieldsetMixin` usage; 2) Streamline translation fieldset injection logic; 3) Code cleanup and minor comment adjustments.
2025-06-22 16:57:54 +03:00
0079998ed7
Features: 1) Add is_navtab, verbose_name, verbose_name_plural, and icon attributes to several inlines for better configuration and clarity;
...
Fixes: 1) Add `# type: ignore` comments to suppress type checking issues on model assignments;
Extra: 1) General code cleanup and improvements to the `admin.py` file.
2025-06-22 16:48:50 +03:00
15df6dd0c8
Features: 1) Add readonly_fields for uuid, modified, and created attributes across multiple admin models; 2) Improve type annotations for FieldsetsMixin class fields.
...
Fixes: 1) Resolve "type: ignore" addition for `ProductAdmin` model definition.
Extra: 1) Minor formatting adjustments for improved readability; 2) Enhance code clarity by standardizing `readonly_fields` across admin classes.
2025-06-22 16:41:32 +03:00
d9e67d5de3
Fixes: None;
...
Features: None;
Extra: 1) Change fieldset titles to lowercase for consistency.
2025-06-22 16:34:57 +03:00
092c7e908c
Features: 1) Implement FieldsetsMixin to dynamically generate and manage admin fieldsets; 2) Refactor admin class definitions to leverage FieldsetsMixin for better consistency and extensibility.
...
Fixes: 1) Correct usage of `CONSTANCE_CONFIG` when setting `site_title` and `index_title` in `admin`.
Extra: Updated imports, removed redundant inline configs, cleaned up unused code, and improved readability in `admin.py`.
2025-06-22 16:34:07 +03:00
d9c4717a8d
Features: 1) Add a new Elasticsearch document for TestModel with fields and settings;
...
Fixes: None;
Extra: 1) Add missing import for TestModel in `core/elasticsearch/documents.py`.
2025-06-22 16:20:05 +03:00
c682137fc5
Features: 1) Replace I18NFieldsetMixin with TranslationFieldsetMixin across all applicable admin classes; 2) Add new inlines for managing related objects such as OrderProduct and CategoryChildren; 3) Introduce support for dynamic translation fields in admin fieldsets.
...
Fixes: 1) Correct `notifications` field handling in `OrderAdmin` and `OrderItemAdmin` save logic; 2) Fix admin `get_queryset` prefetching logic for various models.
Extra: Remove outdated labels and sections in fieldsets; clean up unused imports and commented code for readability.
2025-06-22 16:15:48 +03:00
5425225e31
Features: 1) Add datetime library import; 2) Introduce id_for_label properties for all fields in NiceModel;
...
Fixes: 1) Correct field type hints and add `# type: ignore` to suppress validation issues;
Extra: Refactor code for formatting consistency and readability.
2025-06-22 15:54:43 +03:00
8b46c0a2c5
Features: None;
...
Fixes: None;
Extra: 1) Remove deprecated `health_check.contrib.celery_ping` from installed apps; 2) Remove unused `HEALTHCHECK_CELERY_PING_TIMEOUT` setting.
2025-06-22 15:36:48 +03:00
9347ce1767
Features: 1) Add HEALTHCHECK_CELERY_PING_TIMEOUT setting with default value.;
...
Fixes: (none);
Extra: (none);
2025-06-22 15:32:21 +03:00
30326042b5
Fixes: 1) Removed unused health check dependency for the app service in docker-compose.yml.
2025-06-22 15:28:08 +03:00
eb07ca381e
Fixes: 1) Update healthcheck to include 'Accept: application/json' header in curl command;
...
Extra: None;
2025-06-22 15:21:00 +03:00
7dae84dc10
Features: 1) Add inclusion of Django i18n URL configuration to urlpatterns;
...
Fixes: 1) None;
Extra: 1) Add imports for `include` and `path` from `django.urls`.
2025-06-22 15:15:57 +03:00
1db40a85cf
Fixes: 1) Correct metrics path in Prometheus configuration.
...
Extra: None.
2025-06-22 15:09:36 +03:00
b28d6f1407
Features: 1) Add Windows PowerShell script for database and media backups;
...
Fixes: 1) Correct health check URL syntax in `docker-compose.yml`;
Extra: N/A;
2025-06-22 15:03:43 +03:00
a53a3dc788
Fixes: 1) Correct trailing slash in Prometheus metrics_path for 'app' job.
2025-06-22 14:55:55 +03:00
ad41718d09
Fixes: 1) Update healthcheck URL path in docker-compose.yml to correct endpoint.
...
Extra: N/A;
2025-06-22 14:55:13 +03:00
a8d5969198
Features: 1) Add icons to various admin inline and model configurations for improved UI clarity;
...
Fixes: None;
Extra: None;
2025-06-22 14:46:56 +03:00
76c3cd17e3
Features: 1) Replace I18NTabTranslationAdmin with I18NFieldsetMixin for admin classes; 2) Introduce _TranslationInline for managing translation fields dynamically; 3) Add created and modified fields to readonly_fields in Category admin class;
...
Fixes: 1) Resolve unnecessary imports from `modeltranslation.admin` and streamline admin imports;
Extra: 1) Refactor translation logic into `get_inline_instances` for improved modularity and clarity.
2025-06-22 01:55:46 +03:00
0d37b5b23b
Fixes: 1) Correct iteration over local_fields in translator options, replacing deprecated fields.keys().
2025-06-22 01:42:48 +03:00
c73a8957ed
Features: None;
...
Fixes: None;
Extra: 1) Remove redundant SECTION_I18N fieldsets across admin configurations for cleaner and more maintainable code;
2025-06-22 01:37:37 +03:00
48ef110ac4
Features: 1) Add I18NFieldsetMixin to organize translation fields into a dedicated fieldset; 2) Implement I18NTabTranslationAdmin for enhanced multi-language admin support; 3) Apply new translation admin to AttributeGroupAdmin, AttributeAdmin, AttributeValueAdmin, CategoryAdmin, BrandAdmin, ProductAdmin, ProductTagAdmin, CategoryTagAdmin, and PromotionAdmin.
...
Fixes: 1) Replace `TranslationGenericTabularInline` with `I18NTabTranslationAdmin` to avoid potential translation field duplication.
Extra: 1) Update fieldsets in various model admins for improved structure and translation field grouping; 2) Add constants for fieldset section names to enhance readability and consistency.
2025-06-22 01:31:33 +03:00
02102fa470
Features: 1) Replace TabbedExternalJqueryTranslationAdmin with TranslationGenericTabularInline for multiple admin classes to update translation handling;
...
Fixes: 1) None;
Extra: 1) Regenerate `django.mo` file for localization updates.
2025-06-22 01:20:39 +03:00
73cfcb280c
Fixes: 1) Remove unused sniff_on_start and sniff_on_connection_fail keys from Elasticsearch settings;
...
Extra: Clean up redundant settings in configuration.
2025-06-22 01:08:17 +03:00
f090b2ddc9
Features: 1) Add verbosity option for manage.py migrate and collectstatic commands in reboot scripts;
...
Fixes: 1) Remove unused sniffer_timeout in Elasticsearch settings;
Extra: 1) Minor adjustments to improve script output clarity.
2025-06-22 01:06:20 +03:00
ac7c71c4a1
Fixes: 1) Replace os.getenv with getenv in Elasticsearch settings to avoid import errors;
...
Extra: 1) Add `noqa: F405` comment to suppress linter warning for `getenv`.
2025-06-22 01:01:47 +03:00
db1a357ccb
Features: 1) Update Elasticsearch configuration to use a single host;
...
Fixes: 1) Replace obsolete `getenv` usage with `os.getenv` for better clarity;
Extra: 1) Remove sniffing-related configurations no longer required;
2025-06-22 01:00:41 +03:00
4e6d0a9bab
Features: 1) Add support for multiple Elasticsearch hosts with enhanced configurations; 2) Enable sniffing parameters for cluster discovery and failover handling; 3) Introduce Celery-based signal processor for Elasticsearch synchronization.
...
Fixes: 1) Correct `http_auth` parameter to replace deprecated `basic_auth`.
Extra: 1) Update default Elasticsearch configuration values; 2) Modify `ELASTICSEARCH_DSL_AUTOSYNC` to reflect debug mode; 3) General cleanup and parameter refinements.
2025-06-22 00:54:54 +03:00
a91ba0c41a
Features: 1) Add priority field to Category model; 2) Update priority field in Brand model to improve consistency.
...
Fixes: 1) Ensure correct handling of query results in category/brand auto-resolve methods; 2) Fix PO formatting issues across multiple locales.
Extra: 1) Add `priority` field to Django admin for categories; 2) Suppress specific type-checking warnings in settings and utilities.
2025-06-22 00:48:06 +03:00
3160ab4549
**Features**: 1) Add score_mode="first" to function_score query configuration for enhanced scoring;
...
**Fixes**: None;
**Extra**: 1) Wrap product-specific attributes like `rating` and `brand_priority` in a debug-mode conditional block;
2025-06-21 23:52:05 +03:00
0e4d5fe59f
Features: 1) Update regex pattern in slug generator for improved handling of underscores and word characters;
...
Fixes: None;
Extra: None;
2025-06-21 23:16:34 +03:00
e6ffb476fb
Features: 1) Update regex pattern for slug field generation to exclude non-alphanumeric characters; 2) Add support for custom separators in slugs;
...
Fixes: 1) Remove unnecessary debug logging from get_slug_fields function;
Extra: 1) Minor cleanup in db utility functions;
2025-06-21 23:07:36 +03:00
f2596c25a2
Fixes: 1) Ensure unicode_slugify_function handles non-string input by converting to string.
...
Extra: None;
2025-06-21 22:56:31 +03:00
5d7075ee2e
**Features**: 1) Add unicode_slugify_function for advanced slugify handling; 2) Replace default slugify method with unicode_slugify_function in models; 3) Introduce python-slugify as a project dependency for Unicode slugification;
...
**Fixes**: 1) Remove redundant `slugify` import from `core/models.py`;
**Extra**: 1) Update `poetry.lock` and `pyproject.toml` to lock `python-slugify@8.0.4` and refine dependency definitions; 2) Improve readability of debug logging in `TweakedAutoSlugField`.
2025-06-21 22:49:34 +03:00
9eb4ee72df
Features: 1) Add support for custom slugify_function across models; 2) Introduce logging for debug output in get_slug_fields; 3) Enhance help text for key fields to improve clarity;
...
Fixes: 1) Correct type hints and comments for better accuracy; 2) Address formatting inconsistencies in exception messages and queries;
Extra: Refactor long lines for improved readability and maintainability across functions and methods;
2025-06-21 22:23:54 +03:00
8ae4c35028
Features: 1) Add yapf dependency with configuration in pyproject.toml; 2) Introduce readonly_fields for uuid and slug in ProductAdmin;
...
Fixes: 1) Update `markdown` to 3.8.2 and `pygments` to 2.19.2;
Extra: 1) Minor formatting updates in admin path definitions; 2) Update `poetry.lock` for dependency changes.
2025-06-21 21:04:06 +03:00
f8bf60004b
Features: 1) Add uuid and slug fields to admin panel category form; 2) Make uuid and slug fields read-only;
...
Fixes: 1) Add missing import for `core.utils.db` in migration file;
Extra: 1) Minor formatting improvement for admin site path definition.
2025-06-21 20:51:44 +03:00
5e903641c6
Features: 1) Modify slug field of category model to use TweakedAutoSlugField with enhanced properties (e.g., allow_unicode, unique, overwrite);
...
Fixes: 1) None;
Extra: 1) Auto-generated migration file `0033_alter_category_slug` for the `category` model changes;
2025-06-21 20:40:19 +03:00
fdd92dbf8b
Features: 1) Introduced strict parameter for zip function in widgets.py; 2) Added EXTENSIONS_MAX_UNIQUE_QUERY_ATTEMPTS setting;
...
Fixes: 1) Resolved redundant lines and formatting inconsistencies across multiple files; 2) Corrected Collection typing imports and Optional replacements with union types (e.g., `str | None`);
Extra: Improved formatting and readability by consolidating single-line code sections and simplifying expressions.
2025-06-21 20:38:37 +03:00
67794a7997
Features: 1) Add overwrite=True and max_length=88 to slugs in Brand, Category, and Product models with enhanced slug generation logic; 2) Extend process_query function to include additional fields rating and brand_priority for product results.
...
Fixes: 1) Add missing type annotation for the return value of `process_query` in `core/elasticsearch/__init__.py`.
Extra: 1) Update migration file to reflect new slug field changes; 2) Minor refactor to improve clarity in query result construction.
2025-06-21 20:19:08 +03:00
4b367944b9
Features: 1) Update product.slug to use AutoSlugField with adjusted populate_from order in migrations and model;
...
Fixes: 1) None;
Extra: Refactor `product.slug` field declaration for improved readability in `models.py`.
2025-06-21 19:42:16 +03:00
b6ab56624b
Features: 1) Update slug field in Category model to populate from both uuid and name.
...
Fixes: 1) None.
Extra: 1) Add Django migration to reflect `slug` field changes in the database.
2025-06-21 19:34:16 +03:00
e99ae9e85c
Features: 1) Alter category.slug to populate only from name and enable null values in migration.
...
Fixes: 1) None.
Extra: 1) Removed `parent__slug` from `populate_from` in `category.slug` field in models for consistency.
2025-06-21 19:29:43 +03:00