Fixes: 1) Replace deprecated `RelatedAutocompleteFilter` with `AutocompleteFieldListFilter`; 2) Fix validation and handling of lookup values for admin filters.
Extra: 1) Update CSS for consistent styling of autocomplete widgets; 2) Remove unused `autocomplete_list_filter` assets and references; 3) Refactor JS for better maintainability and performance improvements.
Fixes: 1) Correct inconsistent spacing in `core/admin.py` field attribute assignments and methods.
Extra: 1) Format HTML and Python code for improved readability; 2) Replace inline script with `DOMContentLoaded` listener for better code structure.
Fixes: 1) Resolve potential redundancy in script and CSS inclusion.
Extra: Simplify and streamline the template by removing inline `<script>` tags and consolidating structure.
Fixes: 1) Remove redundant external JavaScript includes for autocomplete functionality;
Extra: 1) Add minor formatting tweak by inserting a blank line for improved readability.
Fixes: 1) Correct handling of initial selection when lookup value is invalid or missing;
Extra: 1) Refactor related admin template and Python code to improve readability and maintainability; 2) Align variable names and code style for consistency.
Fixes: 1) Remove redundant jQuery UI script and CSS imports for optimization;
Extra: 1) Minor formatting adjustments for readability; 2) Replace variable `base_url` with `base` for naming consistency; 3) Improve `expected_parameters` method to return list format.
Fixes: 1) Replace outdated jQuery UI paths with modern equivalents; 2) Ensure proper retrieval of JSON responses in autocomplete widget; 3) Correct misaligned parameter initialization in `AdminFilter`;
Extra: Minor formatting improvements and variable renaming for readability.
Fixes: 1) Ensure default value for `lookup_val` is an empty string if not provided; 2) Correct `field_name` parameter in the autocomplete URL to use `field_path`;
Extra: 1) Minor cleanup by removing redundant variable declarations.
Fixes: 1) Add missing imports for `FieldListFilter` and `reverse` in `core/admin.py`;
Extra: 1) Include relevant JS and CSS assets for autocomplete functionality; 2) Add comments and structure for better readability in template and script.
Fixes: 1) Remove unnecessary imports related to the deleted functionality.
Extra: 1) Extensive cleanup to remove redundant code and references; 2) Minor formatting adjustments for improved readability.
Fixes: 1) Correct file paths for JavaScript and CSS dependencies in admin filter components;
Extra: Streamlined template and asset references for better maintainability;
Fixes: 1) Clean up unused imports in `filters.py`.
Extra: 1) Apply consistent string quoting across `admin.py` for formatting standardization; 2) Update logging configuration for `django.template` with new filter.
Fixes: 1) Remove unused imports from `core/admin.py`;
Extra: 1) Delete redundant `autocomplete_filter.html` template and associated filter classes for cleanup; 2) Minor refactoring of `ProductAdmin` class in alignment with the removal of filters.
Fixes: 1) Correct `parameter_name` assignments in BrandAdminFilter, CategoryAdminFilter, TagsAdminFilter, and VendorAdminFilter to use plain strings;
Extra: None;
Fixes: 1) Correct parameter name value extraction to use `current` in `BaseAutocompleteFilter`;
Extra: 1) Refactor HTML rendering in `BaseAutocompleteFilter` for readability; 2) Add comments to explain purposes in the new template.
Fixes: 1) Replace hardcoded `AutocompleteListFilter` with newly created filters for better modularity;
Extra: 1) Refactor queryset string handling and enhance readability in filter choices; 2) Update admin `list_filter` with new filter classes.
Fixes: 1) Remove unused `django-autocompletefilter` package and adjust imports; 2) Clean up related settings and dependency references;
Extra: Minor formatting adjustments in `payments/admin.py`.
Fixes: 1) Remove deprecated `dalf` package from dependencies and configurations;
Extra: Update `poetry.lock` file and related hashes to reflect changes;
Fixes: 1) Replace `DALFModelAdmin` with `ModelAdmin` in `ProductAdmin` class; 2) Remove invalid use of `DALFChoicesField` for `list_filter` in `ProductAdmin`;
Extra: 1) Add missing import for `forms` and `get_select2_language`; 2) General cleanup and refactoring of `ProductAdmin` class.
Fixes: 1) Correct use of `@action` decorator within `ActivationActionsMixin` for defining admin actions; 2) Remove unused `BasicModelAdmin` inheritance from multiple admin classes.
Extra: Refactor and simplify admin imports and site registration for better readability and maintainability.
Fixes: 1) Removed unused imports to reduce clutter; 2) Simplified media property in `ProductAdmin` by removing unnecessary customization logic.
Extra: Refactored all admin model classes to utilize `ActivationActionsMixin` for consistency and maintainability.
Fixes: 1) Correct handling of the Select2 i18n file path in admin media to prevent issues with optional language files;
Extra: 1) Minor refactoring to streamline JavaScript file list construction.
Fixes: 1) Update paths for JavaScript assets to remove redundant `admin/js/vendor` prefix;
Extra: 1) Simplify file list construction by adjusting paths for consistency.
Fixes: 1) Replace `DALFRelatedFieldAjax` with `DALFRelatedOnlyField` for vendor stock field.
Extra: 1) Minor formatting adjustments in `api_urls.py` for readability.
Fixes: 1) Correct indentation in `api_urls.py` for better readability; 2) Update `.gitignore` to include `.nuxt/`, `.next/`, and `next-env.d.ts` paths; 3) Simplify query formatting in `delete_never_ordered_products` command;
Extra: None;
Fixes: 1) Resolve inconsistency by replacing `DALFRelatedOnlyField` with `DALFRelatedFieldAjax`;
Extra: Clean up admin field definitions to align with the latest field usage.
Fixes: 1) Correct list_filter fields for brand and category in ProductAdmin to use proper lookup names;
Extra: 1) Add missing import for forms and get_select2_language from
Fixes: 1) Correct unnecessary use of `Collection` type hint in core and simple serializers; 2) Fix translation of "blacklisted tokens" in Russian localization;
Extra: 1) Simplify conditional logic in `get_children` methods across serializers; 2) Remove unused imports and improve code readability.
Fixes: 1) Simplify Prometheus and GraphQL path definitions in `evibes/api_urls.py`;
Extra: 1) Add line breaks across multiple files for improved code readability.
Fixes: 1) Adjusted Django admin translations display logic for improved clarity; 2) Updated locale files across multiple regions (e.g., `ru_RU`, `zh_Hans`, `ro_RO`) to align with new context placeholders;
Extra: Removed obsolete `STOCKS_ARE_SINGLE` setting; minor formatting and spacing corrections in translations and source files.
Fixes: 1) Correct transaction primary key reference in email utility; 2) Remove unnecessary model permissions in `jazzmin.py`;
Extra: 1) Minor formatting alignments to codebase including whitespace adjustments; 2) Retain static URL handling in debug mode for `api_urls`.
Fixes: 1) Correct formatting of multi-line expressions for better readability; 2) Ensure consistent use of single-line expressions where appropriate; 3) Fix minor spacing issues in text fields; 4) Adjust admin model field `general_fields` to include `priority`;
Extra: Refactored several multi-line statements to improve consistency and code style.
Fixes: 1) Fix shebangs in Docker entry-point scripts to use `/usr/bin/bash`.
Extra: 1) Refactor slug fields in `core` migrations for `Brand`, `Category`, and `Product`; 2) Cleanup and simplify admin code in `core/admin.py`.
Fixes: 1) Corrected error message in `products` update case for consistent terminology.
Extra: 1) Refactored `delete_inactives` logic for clarity and added validation for inactivation methods.
Fixes: 1) Correct method parameters for activation/deactivation actions in `BasicModelAdmin`;
Extra: 1) Improve formatting of `general_fields` lists for readability.
Fixes: 1) Correct `total_orders` calculation in `Product` model to count only relevant statuses.
Extra: 1) Refactor comments for clarity in Elasticsearch configuration; 2) Minor formatting adjustments.
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.
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.
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.
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`.
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.
Fixes: 1) Correct field type hints and add `# type: ignore` to suppress validation issues;
Extra: Refactor code for formatting consistency and readability.
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.
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.
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.
**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`.
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;
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.
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.
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.
Fixes: 1) Corrected mismatched line references in translations; 2) Adjusted timestamps in locale files for accuracy;
Extra: Refactored and cleaned up unused or misplaced translation entries.
Fixes: 1) Updated AutoSlugField to enhance slug generation logic in core models.
Extra: 1) Removed redundant Daisy settings from base configurations; 2) Minor code cleanup and organization.
Fixes: 1) Remove unused imports in `core/elasticsearch/__init__.py`.
Extra: Refactor `process_query` for improved readability and functionality; update aggregation and result processing logic; reformat and clean up code.
Fixes: 1) Handle missing or empty query input with a more explicit check; 2) Resolve potential response errors by catching `NotFoundError` exceptions in search execution.
Extra: Refactor code structure to improve readability and modularity, including better slug generation logic and streamlined image URL handling.
Fixes: 1) Enhance `raw` field in `name` with `lc` normalizer for consistent lowercase processing;
Extra: 1) Define custom `lc` normalizer in Elasticsearch settings; 2) General code formatting and minor cleanup.
Fixes: 1) Adjusted modeltranslation admin import to use external jQuery variant; 2) Corrected optional flags for package dependencies in poetry.lock;
Extra: 1) Removed custom PostAdminForm in favor of SummernoteModelAdmin; 2) Enhanced formatting consistency in api_urls and admin files.
Fixes: 1) Ensure queryset returns `none()` when no valid UUIDs are found in filters;
Extra: 1) Refactor import statements for readability; 2) Clean up and consolidate redundant filter logic across multiple `filter_name` methods;
Fixes: 1) Replaced direct `name` filtering with `filter_name` method in `ProductFilter`, `CategoryFilter`, and `BrandFilter`.
Extra: 1) Imported `process_query` from `core.elasticsearch`; 2) Cleaned up unused imports and adjusted formatting.
Fixes: 1) Add `# type: ignore` comments for ForeignKey fields to resolve type-checking warnings in models.
Extra: 1) Refactor admin field formatting for better readability; 2) Add `# noinspection PyProtectedMember` annotation in `rebuild_slugs` management command; 3) Clean up spacing and alignment in various files.
Fixes: 1) Correct inconsistent function calls with improved attribute formatting; 2) Fix invalid key usage (`uuid` vs. `pk`) in slug rebuilding logic to prevent uniqueness errors; 3) Ensure correct `query` usage in `process_query` function calls.
Extra: Reformat code for readability by updating indentation, and breaking long function signatures and expressions into multiple lines.