The wishlists app allows signed-in users to create one or more wishlists. A user can add a product to their wishlist from the product detail page and manage their lists in the account section.
The wishlists app is wired up as a subapp of Customer.
Please note that currently only private wishlists are supported. The hooks and fields for public (as in general public) and shared (as in access via an obfuscated link) are there, but the UI hasn’t been designed yet.
- class oscar.apps.wishlists.abstract_models.AbstractLine(*args, **kwargs)¶
One entry in a wish list. Similar to order lines or basket lines.
- title = None¶
Store the title in case product gets deleted
- class oscar.apps.wishlists.abstract_models.AbstractWishList(*args, **kwargs)¶
Represents a user’s wish lists of products.
A user can have multiple wish lists, move products between them, etc.
Add a product to this wishlist
- key = None¶
This key acts as primary key and is used instead of an int to make it harder to guess
- classmethod random_key(length=6)¶
Get a unique random generated key based on SHA-1 and owner