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 #852 from ssbl/mozwiki
Browse files Browse the repository at this point in the history
979828 - Add Mozilla Wiki to external accounts
  • Loading branch information
glogiotatidis committed Mar 12, 2014
2 parents 790c12f + 05181fb commit e286f86
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mozillians/users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,7 @@ class ExternalAccount(models.Model):
TYPE_BITBUCKET = 'BITBUCKET'
TYPE_SLIDESHARE = 'SLIDESHARE'
TYPE_WEBMAKER = 'WEBMAKER'
TYPE_MOWIKI = 'MOZILLAWIKI'

ACCOUNT_TYPES = {
TYPE_AMO: {'name': 'Mozilla Add-ons',
Expand Down Expand Up @@ -736,6 +737,8 @@ class ExternalAccount(models.Model):
TYPE_WEBMAKER: {'name': 'Mozilla Webmaker',
'url': 'https://{identifier}.makes.org',
'validator': validate_username_not_url},
TYPE_MOWIKI: {'name': 'Mozilla Wiki', 'url': 'https://wiki.mozilla.org/User:{identifier}',
'validator': validate_username_not_url}
}

user = models.ForeignKey(UserProfile)
Expand Down

0 comments on commit e286f86

Please sign in to comment.