Skip to content

Commit

Permalink
Merge pull request #622 from akvo/feature/608_account_types
Browse files Browse the repository at this point in the history
[#608] Changed organisation account types
  • Loading branch information
zzgvh committed Jun 13, 2014
2 parents 105106d + ccc4ae1 commit c48eced
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions akvo/rsr/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,14 +535,17 @@ class Meta:

class OrganisationAccount(models.Model):
"""
This model keps track of organisation account levels and other relevant data.
This model keeps track of organisation account levels and other relevant data.
The reason for having this in a separate model form Organisation is to hide
it from the org admins.
"""

ACCOUNT_LEVEL = (
('free', u'Free'),
('plus', u'Plus'),
('freemium', u'Freemium'),
('premium', u'Premium'),
('plus', u'Premium Plus'),
('archived', u'Archived'),
)
organisation = models.OneToOneField(Organisation, verbose_name=u'organisation', primary_key=True)
account_level = ValidXMLCharField(u'account level', max_length=12, choices=ACCOUNT_LEVEL, default='free')
Expand Down

0 comments on commit c48eced

Please sign in to comment.