A reusable Django app for league shop.
Project description
League Shop Base
Reusable Django app
Quick start
Add "lsb" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'lsb',
]
To specify top sold skin values parser, add the following settings:
LSB_SETTINGS = {
'top_sold_skin_values': {
'func': <dotted_module_string_path>,
'args': <args>,
'kwargs': <kwargs>
}
}
For example:
LSB_SETTINGS = {
'top_sold_skin_values': {
'func': 'lsb.utils.skins.get_top_sold_skin_values',
'args': [0, 150],
'kwargs': {}
}
}
Changelog (1.0.49)
- Renamed is_bare_metal to is_premium in admin
- Make rank field non nullable
- Added valid account and old stock filter. Needs
old_stock_max_date
in LSB_SETTINGS for old stock filter.LSB_SETTINGS = { ... "old_stock_max_date": "yyyy-mm-dd", ... }
Changelog (1.0.72)
- Remove the requirement of
old_stock_max_date
inLSB_SETTINGS
. It's not needed anymore. Replaced byconstants.OLD_STOCK_THRESHOLD
andconstants.OLD_STOCK_THRESHOLD_STR
. These can be used commonly for master-api, smurfskins-api, etc.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
league_shop_base-1.0.74.tar.gz
(20.3 kB
view hashes)
Built Distribution
Close
Hashes for league_shop_base-1.0.74-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73a39d704a366a4b778f8fe58d9a4a38ca0ef6549bd785adb02c49023a1d8b5d |
|
MD5 | a6dbe58c874b03d7c7759b684f4903d9 |
|
BLAKE2b-256 | 9f0e26a1c9f74f4d0d7c4711e5ca21811606b723edc146eda4723bc74cb87600 |