Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add payment_methods field to PaymentRequest

  • Loading branch information...
commit 8bf1f71a1c45a0d7411fe5f02cb27daa4fa41826 1 parent 8e20d53
@Akuryou Akuryou authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 skrill/models.py
View
7 skrill/models.py
@@ -6,7 +6,8 @@
from django.db import models
import django.dispatch
-from skrill.settings import get_secret_word_as_md5
+from multiselectfield import MultiSelectField
+
from skrill.settings import *
@@ -132,6 +133,10 @@ class PaymentRequest(models.Model):
detail5_text = models.CharField("Detail 5 text", max_length=240, blank=True, null=True,
help_text="The detail5_text is shown next to the detail5_description. The detail5_text is also shown to the client in his history at Skrill (Moneybookers)' website.")
+ # other features
+ payment_methods = MultiSelectField("Payment methods", max_length=100, choices=GATEWAY_PAYMENT_CODES, blank=True, null=True,
+ help_text="If no payment method is selected all will be available")
+
class Meta:
verbose_name = "Payment request"
verbose_name_plural = "Payment requests"
Please sign in to comment.
Something went wrong with that request. Please try again.