Skip to content

Instantly share code, notes, and snippets.

@heyitsjames
Created August 7, 2014 22:00
Show Gist options
  • Select an option

  • Save heyitsjames/b2d8c228b3577c23aeb8 to your computer and use it in GitHub Desktop.

Select an option

Save heyitsjames/b2d8c228b3577c23aeb8 to your computer and use it in GitHub Desktop.
StockRecord ideas
# 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