Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Adds time limited price levels to your model.

Project description

Adds time limited price levels to your model class.


The full documentation is at


Install django-price-level:

pip install django-price-level

Add it to your INSTALLED_APPS:


Configure in your settings the desired model:

from model_utils import Choices
PRICE_LEVEL_MODEL = 'your.Model'
PRICE_LEVEL_CATEGORY_CHOICES = Choices(('basic', _('Basic')), ('company', _('For companies')))

Add author middleware in settings:


Use Pricable behavioral mixin to your model:

from price_level.models import Pricable
class Model(Pricable, models.Model):

Now you can get current price for your category:

price_level = model.get_current_price_level(category='company')


  • Adds PriceLevel models can be bound to your model class

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox


Tools used in rendering this package:


0.1.0 (2017-01-05)

  • First release on PyPI.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-price-level-1.0.0.tar.gz (16.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page