From d6e694556aa04f060acdc5a82923efb79b0f509d Mon Sep 17 00:00:00 2001 From: Ivlev Denis Date: Tue, 13 Mar 2018 14:30:39 +0300 Subject: [PATCH] LIL-290. Add accepted_send_at field for AuthorRequest --- .../0014_authorrequest_accepted_send_at.py | 18 ++++++++++++++++++ apps/user/models.py | 1 + 2 files changed, 19 insertions(+) create mode 100644 apps/user/migrations/0014_authorrequest_accepted_send_at.py diff --git a/apps/user/migrations/0014_authorrequest_accepted_send_at.py b/apps/user/migrations/0014_authorrequest_accepted_send_at.py new file mode 100644 index 00000000..284c5909 --- /dev/null +++ b/apps/user/migrations/0014_authorrequest_accepted_send_at.py @@ -0,0 +1,18 @@ +# Generated by Django 2.0.3 on 2018-03-13 10:55 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('user', '0013_authorrequest_declined_send_at'), + ] + + operations = [ + migrations.AddField( + model_name='authorrequest', + name='accepted_send_at', + field=models.DateTimeField(blank=True, null=True), + ), + ] diff --git a/apps/user/models.py b/apps/user/models.py index 1e8866ab..b1f34217 100644 --- a/apps/user/models.py +++ b/apps/user/models.py @@ -119,6 +119,7 @@ class AuthorRequest(models.Model): status = models.PositiveSmallIntegerField(choices=STATUS_CHOICES, default=PENDING) cause = models.TextField('Причина отказа', null=True, blank=True) + accepted_send_at = models.DateTimeField(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)