misc: add "social network" submission channel as an option (#47942)

This commit is contained in:
Frédéric Péters 2020-11-15 19:45:02 +01:00
parent ad166e31a5
commit 2f56c66c78
1 changed files with 2 additions and 1 deletions

View File

@ -359,7 +359,8 @@ class FormData(StorableObject):
('phone', _('Phone')),
('counter', _('Counter')),
('fax', _('Fax')),
('web', _('Web'))])
('web', _('Web')),
('social-network', _('Social Network'))])
def get_submission_channel_label(self):
return self.get_submission_channels().get(self.submission_channel) or _('Web')