Skip to content

Instantly share code, notes, and snippets.

@shofetim
Created March 13, 2013 20:44
Show Gist options
  • Select an option

  • Save shofetim/5155966 to your computer and use it in GitHub Desktop.

Select an option

Save shofetim/5155966 to your computer and use it in GitHub Desktop.
min_order_adjustment = models.DecimalField(max_digits=12, decimal_places=2, null=True)
@property
def min_order_adjustment(cls):
return cls.min_order_adjustment or 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment