diff --git a/teams/migrations/0005_auto_20150930_2124.py b/teams/migrations/0005_auto_20150930_2124.py new file mode 100644 index 0000000..c5e146a --- /dev/null +++ b/teams/migrations/0005_auto_20150930_2124.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('teams', '0004_auto_20150930_1526'), + ] + + operations = [ + migrations.AddField( + model_name='team', + name='stripe_id', + field=models.CharField(max_length=100, null=True, blank=True), + ), + migrations.AlterField( + model_name='team', + name='name', + field=models.CharField(max_length=30), + ), + ] diff --git a/teams/models.py b/teams/models.py index 01d409d..1e9cc53 100644 --- a/teams/models.py +++ b/teams/models.py @@ -4,12 +4,13 @@ from snipts.utils import slugify_uniquely class Team(models.Model): - user = models.OneToOneField(User, blank=True, null=True) - owner = models.ForeignKey(User, related_name='owner') - name = models.CharField(max_length=30) email = models.EmailField(max_length=255) - slug = models.SlugField(max_length=255, blank=True) members = models.ManyToManyField(User, related_name='member', blank=True) + name = models.CharField(max_length=30) + owner = models.ForeignKey(User, related_name='owner') + slug = models.SlugField(max_length=255, blank=True) + stripe_id = models.CharField(max_length=100, null=True, blank=True) + user = models.OneToOneField(User, blank=True, null=True) created = models.DateTimeField(auto_now_add=True, editable=False) modified = models.DateTimeField(auto_now=True, editable=False) diff --git a/teams/templates/teams/for-teams.html b/teams/templates/teams/for-teams.html index 5830157..51e328d 100644 --- a/teams/templates/teams/for-teams.html +++ b/teams/templates/teams/for-teams.html @@ -9,6 +9,11 @@ {% endblock %} {% block content %} + {% if request.GET.declined %} +