muting: Record DateTime when a Topic is muted.

This includes the necessary migration to add
the date_muted field to the MutedTopic class
and populates it with a hard coded value.
This commit is contained in:
Ryan Rehman
2020-01-17 20:31:00 +05:30
committed by Tim Abbott
parent e4259d48a5
commit 3dc7d60ffe
8 changed files with 65 additions and 7 deletions

View File

@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.26 on 2020-01-17 15:26
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('zerver', '0261_realm_private_message_policy'),
]
operations = [
migrations.AddField(
model_name='mutedtopic',
name='date_muted',
field=models.DateTimeField(default=datetime.datetime(2020, 1, 1, 0, 0)),
),
]