Skip to content

Commit

Permalink
add coupon field
Browse files Browse the repository at this point in the history
  • Loading branch information
odenypeter committed Mar 1, 2023
1 parent cd6e540 commit d1ec617
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions core/migrations/0015_coreuser_coupon.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 2.2.28 on 2023-03-01 06:52

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('core', '0014_subscription_stripe_product_info'),
]

operations = [
migrations.AddField(
model_name='coreuser',
name='coupon',
field=models.CharField(blank=True, max_length=48, null=True),
),
]
1 change: 1 addition & 0 deletions core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ class CoreUser(AbstractUser):
edit_date = models.DateTimeField(null=True, blank=True)
user_type = models.CharField(blank=True, null=True, max_length=50, choices=USER_TYPE_CHOICES, default='Product Team')
survey_status = models.BooleanField(default=False)
coupon = models.CharField(max_length=48, blank=True, null=True)

class Meta:
ordering = ('first_name',)
Expand Down

0 comments on commit d1ec617

Please sign in to comment.