Commit 0e277dbf authored by Michal Čihař's avatar Michal Čihař

Add display fields for billing

This is here to allow graceful limits.
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 6544d516
# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-01-06 18:34
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('billing', '0005_billing_trial'),
]
operations = [
migrations.AddField(
model_name='plan',
name='display_limit_languages',
field=models.IntegerField(default=0),
),
migrations.AddField(
model_name='plan',
name='display_limit_projects',
field=models.IntegerField(default=0),
),
migrations.AddField(
model_name='plan',
name='display_limit_repositories',
field=models.IntegerField(default=0),
),
migrations.AddField(
model_name='plan',
name='display_limit_strings',
field=models.IntegerField(default=0),
),
]
......@@ -34,9 +34,13 @@ class Plan(models.Model):
price = models.IntegerField(default=0)
yearly_price = models.IntegerField(default=0)
limit_strings = models.IntegerField(default=0)
display_limit_strings = models.IntegerField(default=0)
limit_languages = models.IntegerField(default=0)
display_limit_languages = models.IntegerField(default=0)
limit_repositories = models.IntegerField(default=0)
display_limit_repositories = models.IntegerField(default=0)
limit_projects = models.IntegerField(default=0)
display_limit_projects = models.IntegerField(default=0)
class Meta(object):
ordering = ['price']
......
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