Djangoshop-shopit

Latest version: v0.4.3

Safety actively analyzes 621173 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.4.3

* Fix encoding error in product admin `get_name` method.
* Add `phonenumbers` library to requirements.

0.4.2

* Fixes 7 - "unhashable type: 'MoneyInEUR'" error in `get_price_steps` templatetag.

0.4.1

* Small fixes in admin.
* Fix indentation in admin help text for ``djangocms-admin-style``.
* Refactor tests.

0.4.0

* Add support for *Django 1.11* & *DjangoSHOP 0.12.x*.
* Handle tousand separator when displaying money in admin.
* Add ability to pass in ``order_number`` to ``order`` templatetag.
* Add ``num_uses`` to list display for Discount Code.
* After order was populated with cart data, delete discount codes.
* Add ability to send `validate` key when updating the cart via POST. In which
case the promo code gets validated without applying it to cart.
* Add setting ``SHOPIT_DEFAULT_PRODUCT_ORDER`` to control default ordering of products.
* Add ability to override ``ProductSerializer`` fields through the ``fields`` GET property.
* Add ``attribute_choices`` to product serializer fields.
* Add ``template`` field to Flag model, adn a ``SHOPIT_FLAG_TEMPLATES`` setting.
* Add ``path`` to the Flag serializer.
* Include categorization flags on a product.
* Fix flag serializer field.
* Use attachment ``subject_location`` when generating a thumbnail.
* Add ability to pass in ``get_count`` as boolean through the ``request.GET`` object when in
``ProductListView`` and ``CategoryDetailView``. This applies in non HTML formated response and returns the count of
all (filtered) products as ``{'count': 300}``.
* Simplify urls into a single ``urls.py`` since https://github.com/divio/django-cms/pull/5898 was merged.
* Separate admin modules into multiple files.
* Move settings from ``settings.py`` to ``conf.py`` and re-format based on *djangoSHOP's* settings pattern.
* Add ``SHOPIT_ASYNC_PRODUCT_LIST`` and ``SHOPIT_ADD_PRODUCT_LIST_TO_CONTEXT`` settings to optimize ``ProductListView``
and ``CategoryDetailView``.
* Bump ``django-cms`` requirement to 3.5.
* Set default prices to zero.
* Fix field indentation in models and forms to follow Django's style guide.
* Various bugfixes.

---

Attention

Requires ``python manage.py migrate shopit`` to set default price and amount Money fields, and add a template field to the Flag model.

0.3.0

* Handle ``InvalidImageFormatError`` error when generating thumbnails.
* Add support for djangoSHOP 0.11.

0.2.3

* Add ``never_cache`` decorators to account, review and watch views.
* Optimize ``get_flags`` templatetag when filtering by products.
* Add ``content`` field as ``PlaceholderField`` to categorization models.
* Force setting priority on address form, order existant addresses by priority.
* Update ``query_transform`` templatetag to remove empty values.
* Add missing ``FlagModelForm`` to ``FlagAdmin``.
* Fix Flag unicode error in ``__str__``.
* Re-work the reviews, making them non-translatable. Not compatible with the old reviews, make sure to save them
(if you have any) before upgrading. A way for adding reviews was not provided before so this should not be the case.
* Add setting ``SHOPIT_REVIEW_ACTIVE_DEFAULT``. This decides if created reviews are active by default.
* Handle updating shopping cart via ajax, add success messages to it.
* Remove *CartDiscountCode's* from cart when emptying it, make last applied code appears as active.
* Add *PhoneNumberField* field to the customer, add setting ``SHOPIT_PHONE_NUMBER_REQUIRED`` that defaults to ``False``.
* Refactor address forms, enable using either 'shipping' or 'billing' form as primary. added setting ``SHOPIT_PRIMARY_ADDRESS``.
* Fix address country choices.
* Add and track num uses on a *DiscountCode*, alter the admin to display new values.
* Enable frontend editing of categorization and product models.
* Fix *AccountOrderDetail* view not returning the correct order.
* Handle NoReverseMatch for ``add_to_cart_url`` in a Product serializer.

---

Attention:
Requires ``python manage.py migrate shopit`` to add/remove fields on a Review model,
as well as add ``phone_number`` field on Customer model, ``content`` field on Categorization models
and ``max_uses``, ``num_uses`` on *DiscountCode*.

---

Note:
If migrating with categorization models already added. You'll need to save each models again for the ``content`` PlaceholderField to appear.

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.