Add comment field to Orders

refs #177
This commit is contained in:
Tobias Kunze
2016-08-12 10:30:23 +02:00
parent 04ab016d91
commit 3eb581e55a
3 changed files with 29 additions and 0 deletions

View File

@@ -74,6 +74,8 @@ class Order(LoggedModel):
:type payment_info: str
:param total: The total amount of the order, including the payment fee
:type total: decimal.Decimal
:param comment: An internal comment that will only be visible to staff, and never displayed to the user
:type comment: str
"""
STATUS_PENDING = "n"
@@ -153,6 +155,11 @@ class Order(LoggedModel):
decimal_places=2, max_digits=10,
verbose_name=_("Total amount")
)
comment = models.TextField(
blank=True, verbose_name=_("Comment"),
help_text=_("The text entered in this field will not be visible to the user and is available for your "
"convenience.")
)
class Meta:
verbose_name = _("Order")