Skip to content

Commit

Permalink
Fixed missing phone number in Django Shop Plugin
Browse files Browse the repository at this point in the history
Missing phone number option in link plugin awesto#861 Django Shop plugin is missing due to overriding the LinkForm.LINK_TYPE_CHOICES property.
  • Loading branch information
shivamraj74 authored Aug 30, 2021
1 parent 13d9a77 commit c901a63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shop/cascade/plugin_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ class CatalogLinkForm(LinkForm):
('exturl', _("External URL")),
('email', _("Mail To")),
]

if PhoneNumberField:
LINK_TYPE_CHOICES.append(('phonenumber', _("Phone number")))
product = ProductSelectField(
label=_("Product"),
required=False,
Expand Down

0 comments on commit c901a63

Please sign in to comment.