diff --git a/smash/web/migrations/0117_voucher_activity_type.py b/smash/web/migrations/0117_voucher_activity_type.py new file mode 100644 index 0000000000000000000000000000000000000000..ef1198ed71c60bd8df6f4f1fcea686155b86adba --- /dev/null +++ b/smash/web/migrations/0117_voucher_activity_type.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.7 on 2018-07-17 12:54 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('web', '0116_auto_20180611_1346'), + ] + + operations = [ + migrations.AddField( + model_name='voucher', + name='activity_type', + field=models.CharField(blank=True, default=b'', max_length=40, verbose_name=b'Activity type'), + ), + ] diff --git a/smash/web/models/voucher.py b/smash/web/models/voucher.py index 2f47fae06cd7c58e4c75424d0b768daa8d51aa2a..560b5896a342dcd3c90be70f2ff1f97e7011a521 100644 --- a/smash/web/models/voucher.py +++ b/smash/web/models/voucher.py @@ -48,6 +48,13 @@ class Voucher(models.Model): default=VOUCHER_STATUS_NEW ) + activity_type = models.CharField(max_length=40, + verbose_name='Activity type', + null=False, + blank=True, + default='' + ) + feedback = models.TextField(max_length=2000, blank=True, verbose_name='Feedback'