LIL-290. Add declined_send_at field for AuthorRequest

remotes/origin/hasaccess
Ivlev Denis 8 years ago
parent f8b28c9ca7
commit 28aa159c83
  1. 18
      apps/user/migrations/0013_authorrequest_declined_send_at.py
  2. 1
      apps/user/models.py

@ -0,0 +1,18 @@
# Generated by Django 2.0.3 on 2018-03-13 10:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0012_authorrequest_cause'),
]
operations = [
migrations.AddField(
model_name='authorrequest',
name='declined_send_at',
field=models.DateTimeField(blank=True, null=True),
),
]

@ -119,6 +119,7 @@ class AuthorRequest(models.Model):
status = models.PositiveSmallIntegerField(choices=STATUS_CHOICES, default=PENDING)
cause = models.TextField('Причина отказа', null=True, blank=True)
declined_send_at = models.DateTimeField(null=True, blank=True)
created_at = models.DateTimeField(auto_now_add=True)
update_at = models.DateTimeField(auto_now=True)

Loading…
Cancel
Save