Skip to content

Commit c901a63

Browse files
authored
Fixed missing phone number in Django Shop Plugin
Missing phone number option in link plugin awesto#861 Django Shop plugin is missing due to overriding the LinkForm.LINK_TYPE_CHOICES property.
1 parent 13d9a77 commit c901a63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

shop/cascade/plugin_base.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ class CatalogLinkForm(LinkForm):
5252
('exturl', _("External URL")),
5353
('email', _("Mail To")),
5454
]
55-
55+
if PhoneNumberField:
56+
LINK_TYPE_CHOICES.append(('phonenumber', _("Phone number")))
5657
product = ProductSelectField(
5758
label=_("Product"),
5859
required=False,

0 commit comments

Comments
 (0)