Created
August 7, 2014 22:00
-
-
Save heyitsjames/b2d8c228b3577c23aeb8 to your computer and use it in GitHub Desktop.
StockRecord ideas
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # subclassed/partner/models.py | |
| from django.db import models | |
| from django.utils.translation import ugettext_lazy as _, pgettext_lazy | |
| from oscar.apps.partner.abstract_models import AbstractStockRecord | |
| class StockRecord(AbstractStockRecord): | |
| lower_limit = models.IntegerField(_("Lower order limit")) | |
| upper_limit = models.IntegerField(_("Upper order limit"), null=True, blank=True) | |
| tier_price = models.DecimalField(_("Tier price"), max_digits=10, decimal_places=2) | |
| from oscar.apps.partner.models import * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment