LIL-290. Add cause field for AuthorRequest

remotes/origin/hasaccess
Ivlev Denis 8 years ago
parent a43973ba98
commit ae301bd0e1
  1. 18
      apps/user/migrations/0012_authorrequest_cause.py
  2. 1
      apps/user/models.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='Причина отказа'),
),
]

@ -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)

Loading…
Cancel
Save