mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-09 22:38:19 +02:00
Collect a timestamp from emails + migration
This commit is contained in:
parent
47da2de396
commit
6673c58ca4
4 changed files with 30 additions and 0 deletions
20
django_mailbox/migrations/0009_message_timestamp.py
Normal file
20
django_mailbox/migrations/0009_message_timestamp.py
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# Generated by Django 3.1.4 on 2022-10-17 11:13
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.utils.timezone
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('django_mailbox', '0008_auto_20190219_1553'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='message',
|
||||
name='timestamp',
|
||||
field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='Timestamp'),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue