From ae301bd0e10fcfc25b90f6674639b897bcc376e8 Mon Sep 17 00:00:00 2001 From: Ivlev Denis Date: Tue, 13 Mar 2018 10:50:36 +0300 Subject: [PATCH] LIL-290. Add cause field for AuthorRequest --- .../migrations/0012_authorrequest_cause.py | 18 ++++++++++++++++++ apps/user/models.py | 1 + 2 files changed, 19 insertions(+) create mode 100644 apps/user/migrations/0012_authorrequest_cause.py diff --git a/apps/user/migrations/0012_authorrequest_cause.py b/apps/user/migrations/0012_authorrequest_cause.py new file mode 100644 index 00000000..fef855a2 --- /dev/null +++ b/apps/user/migrations/0012_authorrequest_cause.py @@ -0,0 +1,18 @@ +# Generated by Django 2.0.3 on 2018-03-13 07:49 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('user', '0011_auto_20180313_0744'), + ] + + operations = [ + migrations.AddField( + model_name='authorrequest', + name='cause', + field=models.TextField(blank=True, null=True, verbose_name='Причина отказа'), + ), + ] diff --git a/apps/user/models.py b/apps/user/models.py index ae807779..6e2e6fef 100644 --- a/apps/user/models.py +++ b/apps/user/models.py @@ -117,6 +117,7 @@ class AuthorRequest(models.Model): about = models.CharField('О себе', max_length=1000, null=True, blank=True) facebook = models.URLField(default='', null=True, blank=True) status = models.PositiveSmallIntegerField(choices=STATUS_CHOICES, default=PENDING) + cause = models.TextField('Причина отказа', null=True, blank=True) created_at = models.DateTimeField(auto_now_add=True) update_at = models.DateTimeField(auto_now=True)