Commit 3df90fa6 authored by Michal Čihař's avatar Michal Čihař

Add yearly plan

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 98860067
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('billing', '0002_auto_20150917_1445'),
]
operations = [
migrations.AlterModelOptions(
name='plan',
options={'ordering': ['price']},
),
migrations.AddField(
model_name='plan',
name='yearly_price',
field=models.IntegerField(default=0),
preserve_default=False,
),
]
......@@ -28,13 +28,14 @@ from weblate.trans.models import Project, SubProject
class Plan(models.Model):
name = models.CharField(max_length=100, unique=True)
price = models.IntegerField()
yearly_price = models.IntegerField()
limit_strings = models.IntegerField(default=0)
limit_languages = models.IntegerField(default=0)
limit_repositories = models.IntegerField(default=0)
limit_projects = models.IntegerField(default=0)
class Meta(object):
ordering = ['name']
ordering = ['price']
def __unicode__(self):
return self.name
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment