Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1221 from comzeradd/telegram
Browse files Browse the repository at this point in the history
[Fix bug 1191720] Add Telegram to Social Media Section
  • Loading branch information
comzeradd committed Aug 13, 2015
2 parents 9af967f + b34c6df commit eea616b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mozillians/users/models.py
Expand Up @@ -746,6 +746,7 @@ class ExternalAccount(models.Model):
TYPE_MOLOCATION = 'MOZILLALOCATION'
TYPE_MOPONTOON = 'MOZILLAPONTOON'
TYPE_TRANSIFEX = 'TRANSIFEX'
TYPE_TELEGRAM = 'TELEGRAM'

# Account type field documentation:
# name: The name of the service that this account belongs to. What
Expand Down Expand Up @@ -837,6 +838,9 @@ class ExternalAccount(models.Model):
TYPE_TRANSIFEX: {'name': 'Transifex',
'url': 'https://www.transifex.com/accounts/profile/{identifier}/',
'validator': validate_username_not_url},
TYPE_TELEGRAM: {'name': 'Telegram',
'url': 'https://telegram.me/{identifier}/',
'validator': validate_username_not_url},
}

user = models.ForeignKey(UserProfile)
Expand Down

0 comments on commit eea616b

Please sign in to comment.